From f53fbf9bcab5dd86bda23cb871bd5a7c434501f6 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 2 Mar 2022 09:31:47 -0300 Subject: [PATCH] Bug 29857: (follow-up) Fix t/Koha/Plugins/Tab.t Signed-off-by: Tomas Cohen Arazi --- t/Koha/Plugins/Tab.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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' ); -- 2.35.1