Bugzilla – Attachment 86667 Details for
Bug 21998
Add pattern parameter in Koha::Token
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21998: Silent tests
Bug-21998-Silent-tests.patch (text/plain), 1.00 KB, created by
Martin Renvoize (ashimema)
on 2019-03-15 10:53:17 UTC
(
hide
)
Description:
Bug 21998: Silent tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-03-15 10:53:17 UTC
Size:
1.00 KB
patch
obsolete
>From 53e7b8dc0f94a5da1cd71984dca2395b2932954e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 27 Feb 2019 14:49:35 -0300 >Subject: [PATCH] Bug 21998: Silent tests > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > t/Token.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/Token.t b/t/Token.t >index cfbfaaae3f..13548e3d17 100644 >--- a/t/Token.t >+++ b/t/Token.t >@@ -99,5 +99,5 @@ subtest 'Pattern parameter' => sub { > $id = $tokenizer->generate({ pattern => '[A-Z]{10}' }); > is( length($id), 10, 'Check length again' ); > ok( $id !~ /[^A-Z]/, 'Only uppercase letters' ); >- throws_ok( sub { $tokenizer->generate({ pattern => 'abc[', }) }, 'Koha::Exceptions::Token::BadPattern', 'Exception should be thrown when wrong pattern is used'); >+ throws_ok( sub { $tokenizer->generate({ pattern => 'abc{d,e}', }) }, 'Koha::Exceptions::Token::BadPattern', 'Exception should be thrown when wrong pattern is used'); > }; >-- >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 21998
:
83196
|
83347
|
83348
|
84401
|
85791
|
86665
|
86666
| 86667