Lines 56-62
subtest 'add' => sub {
Link Here
|
56 |
'Koha::Exceptions::MissingParameter', |
56 |
'Koha::Exceptions::MissingParameter', |
57 |
'Exception thrown when biblio_id is passed'; |
57 |
'Exception thrown when biblio_id is passed'; |
58 |
|
58 |
|
59 |
is( "$@", 'The biblio_id parameter is mandatory' ); |
59 |
like( "$@", qr/The biblio_id parameter is mandatory/ ); |
60 |
|
60 |
|
61 |
throws_ok { |
61 |
throws_ok { |
62 |
Koha::Club::Hold::add( |
62 |
Koha::Club::Hold::add( |
Lines 68-74
subtest 'add' => sub {
Link Here
|
68 |
'Koha::Exceptions::MissingParameter', |
68 |
'Koha::Exceptions::MissingParameter', |
69 |
'Exception thrown when club_id is passed'; |
69 |
'Exception thrown when club_id is passed'; |
70 |
|
70 |
|
71 |
is( "$@", 'The club_id parameter is mandatory' ); |
71 |
like( "$@", qr/The club_id parameter is mandatory/ ); |
72 |
|
72 |
|
73 |
throws_ok { |
73 |
throws_ok { |
74 |
Koha::Club::Hold::add( |
74 |
Koha::Club::Hold::add( |
75 |
- |
|
|