Bug 21998: Silent tests
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit e9fa69ca64)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
e180d8f460
commit
aa631b60e4
|
|
@ -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');
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue