Bug 36329: (follow-up) Fix error message comparisson in testes

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 5f7a9db936)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit f805c221cf)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Tomas Cohen Arazi 2024-03-19 12:11:54 -03:00 committed by Lucas Gass
parent 900f6b2ce0
commit 3cfded7076
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ subtest 'batch_add() and batch_delete() tests' => sub {
# Create all combinations of to/from libraries
$t->post_ok( "//$auth_userid:$password@/api/v1/transfer_limits/batch" => json =>
{ item_type => 'X', collection_code => 'Y' } )->status_is(400)
->json_is( '/error' => "Only one of 'item_type' and 'collecion_code' can be passed at a time" );
->json_is( '/error' => "You can only pass 'item_type' or 'collection_code' at a time" );
t::lib::Mocks::mock_preference( 'BranchTransferLimitsType', 'ccode' );