diff --git a/t/Koha/Plugins/Tab.t b/t/Koha/Plugins/Tab.t index 94b7097f23..7502967499 100755 --- a/t/Koha/Plugins/Tab.t +++ b/t/Koha/Plugins/Tab.t @@ -29,9 +29,9 @@ subtest 'new() tests' => sub { 'Koha::Exceptions::MissingParameter', 'Exception is thrown on missing content'; - is( + like( "$@", - "Mandatory parameter 'content' missing", + qr/Mandatory parameter 'content' missing/, 'Exception message is correct' ); @@ -39,9 +39,9 @@ subtest 'new() tests' => sub { 'Koha::Exceptions::MissingParameter', 'Exception is thrown on missing title'; - is( + like( "$@", - "Mandatory parameter 'title' missing", + qr/Mandatory parameter 'title' missing/, 'Exception message is correct' );