Bugzilla – Attachment 83574 Details for
Bug 22059
Wrong exception parameters in Koha::Patron->set_password
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22059: regression tests
Bug-22059-regression-tests.patch (text/plain), 1.10 KB, created by
Tomás Cohen Arazi (tcohen)
on 2019-01-02 12:59:54 UTC
(
hide
)
Description:
Bug 22059: regression tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-01-02 12:59:54 UTC
Size:
1.10 KB
patch
obsolete
>From d286bb751f91455073bd8377957c96124dcde394 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 2 Jan 2019 09:56:21 -0300 >Subject: [PATCH] Bug 22059: regression tests > >--- > t/db_dependent/Koha/Patrons.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Patrons.t b/t/db_dependent/Koha/Patrons.t >index 9dda5295cd..7d3b5c9dc4 100644 >--- a/t/db_dependent/Koha/Patrons.t >+++ b/t/db_dependent/Koha/Patrons.t >@@ -1529,7 +1529,7 @@ subtest '->store' => sub { > > subtest '->set_password' => sub { > >- plan tests => 12; >+ plan tests => 13; > > $schema->storage->txn_begin; > >@@ -1543,6 +1543,10 @@ subtest '->set_password' => sub { > throws_ok { $patron->set_password('ab'); } > 'Koha::Exceptions::Password::TooShort', > 'minPasswordLength is undef, fall back to 3, fail test'; >+ is( "$@", >+ 'Password length (2) is shorter than required (3)', >+ 'Exception parameters passed correctly' >+ ); > > t::lib::Mocks::mock_preference( 'minPasswordLength', 2 ); > throws_ok { $patron->set_password('ab'); } >-- >2.20.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 22059
:
83574
|
83575
|
83576
|
83577
|
83607
|
83608