Bugzilla – Attachment 76571 Details for
Bug 21022
Exceptions should skip stringifying if message manually passed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21022: Unit tests
Bug-21022-Unit-tests.patch (text/plain), 1.12 KB, created by
Tomás Cohen Arazi
on 2018-06-29 14:18:02 UTC
(
hide
)
Description:
Bug 21022: Unit tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2018-06-29 14:18:02 UTC
Size:
1.12 KB
patch
obsolete
>From 7d2105e5ac254a1a6541c365074829e96169cded Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 29 Jun 2018 11:02:40 -0300 >Subject: [PATCH] Bug 21022: Unit tests > >--- > t/Koha/Exceptions.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/Koha/Exceptions.t b/t/Koha/Exceptions.t >index 8fd37aa1ac..c306d31cb9 100644 >--- a/t/Koha/Exceptions.t >+++ b/t/Koha/Exceptions.t >@@ -22,7 +22,7 @@ use Test::Exception; > > subtest 'Koha::Exceptions::Object::FKConstraint tests' => sub { > >- plan tests => 3; >+ plan tests => 5; > > use_ok('Koha::Exceptions::Object'); > >@@ -34,5 +34,10 @@ subtest 'Koha::Exceptions::Object::FKConstraint tests' => sub { > # stringify the exception > is( "$@", 'Invalid parameter passed, nasty=fk does not exist', 'Exception stringified correctly' ); > >+ throws_ok >+ { Koha::Exceptions::Object::FKConstraint->throw( "Manual message exception" ) } >+ 'Koha::Exceptions::Object::FKConstraint', >+ 'Exception is thrown :-D'; >+ is( "$@", 'Manual message exception', 'Exception not stringified if manually passed' ); > }; > >-- >2.18.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 21022
:
76571
|
76572
|
76573
|
76889
|
76890
|
76891
|
76893
|
76894
|
76895