Bugzilla – Attachment 114051 Details for
Bug 26171
Show biblionumber in Koha::Exceptions::Metadata::Invalid
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26171: adapt Koha/Exceptions.t
Bug-26171-adapt-KohaExceptionst.patch (text/plain), 1.64 KB, created by
Victor Grousset/tuxayo
on 2020-11-27 17:21:03 UTC
(
hide
)
Description:
Bug 26171: adapt Koha/Exceptions.t
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2020-11-27 17:21:03 UTC
Size:
1.64 KB
patch
obsolete
>From aa2f58bf24b87eb81d3823508ba4d0c1b460f31e Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Fri, 7 Aug 2020 10:30:55 +0200 >Subject: [PATCH] Bug 26171: adapt Koha/Exceptions.t > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > t/Koha/Exceptions.t | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/t/Koha/Exceptions.t b/t/Koha/Exceptions.t >index 13f83049ab..1a98779429 100755 >--- a/t/Koha/Exceptions.t >+++ b/t/Koha/Exceptions.t >@@ -111,18 +111,19 @@ subtest 'Koha::Exceptions::Metadata tests' => sub { > > my $object = Test::MockObject->new; > $object->mock( 'id', 'an_id' ); >+ $object->mock( 'biblionumber', 'a_biblionumber' ); > $object->mock( 'format', 'a_format' ); > $object->mock( 'schema', 'a_schema' ); > > throws_ok > { Koha::Exceptions::Metadata::Invalid->throw( >- id => 'an_id', format => 'a_format', >+ id => 'an_id', biblionumber => 'a_biblionumber', format => 'a_format', > schema => 'a_schema', decoding_error => 'a_nasty_error' ); } > 'Koha::Exceptions::Metadata::Invalid', > 'Exception is thrown :-D'; > > # stringify the exception >- is( "$@", 'Invalid data, cannot decode object (id=an_id, format=a_format, schema=a_schema, decoding_error=\'a_nasty_error\')', 'Exception stringified correctly' ); >+ is( "$@", 'Invalid data, cannot decode object (id=an_id, biblionumber=a_biblionumber, format=a_format, schema=a_schema, decoding_error=\'a_nasty_error\')', 'Exception stringified correctly' ); > > throws_ok > { Koha::Exceptions::Metadata::Invalid->throw( "Manual message exception" ) } >-- >2.29.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26171
:
107941
|
107944
|
114050
|
114051
|
114575
|
114576
|
114577