Bugzilla – Attachment 76889 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.18 KB, created by
Martin Renvoize (ashimema)
on 2018-07-12 12:33:57 UTC
(
hide
)
Description:
Bug 21022: Unit tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2018-07-12 12:33:57 UTC
Size:
1.18 KB
patch
obsolete
>From 957a135df79fe06d03a967d12e96fe8d908b9e7c 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 > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > 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.17.1
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