Bugzilla – Attachment 107944 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.58 KB, created by
Fridolin Somers
on 2020-08-07 08:31:51 UTC
(
hide
)
Description:
Bug 26171: adapt Koha/Exceptions.t
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2020-08-07 08:31:51 UTC
Size:
1.58 KB
patch
obsolete
>From 7edb74977eafd1844553a6f73ac6227c76711e33 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 > >--- > 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 100644 >--- 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.27.0
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