Bug 21998: Silent tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 27 Feb 2019 17:49:35 +0000 (14:49 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 22 Mar 2019 20:21:45 +0000 (20:21 +0000)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

t/Token.t

index cfbfaaa..13548e3 100644 (file)
--- 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');
 };