Bug 29857: (follow-up) Fix t/db_dependent/Koha/Club/Hold.t

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Fridolin Somers 2022-03-02 08:04:00 -10:00
parent 85c4ac7582
commit 6573dd7ef9

View file

@ -56,7 +56,7 @@ subtest 'add' => sub {
'Koha::Exceptions::MissingParameter',
'Exception thrown when biblio_id is passed';
is( "$@", 'The biblio_id parameter is mandatory' );
like( "$@", qr/The biblio_id parameter is mandatory/ );
throws_ok {
Koha::Club::Hold::add(
@ -68,7 +68,7 @@ subtest 'add' => sub {
'Koha::Exceptions::MissingParameter',
'Exception thrown when club_id is passed';
is( "$@", 'The club_id parameter is mandatory' );
like( "$@", qr/The club_id parameter is mandatory/ );
throws_ok {
Koha::Club::Hold::add(