Bug 35167: Regression tests
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
This commit is contained in:
parent
b332096265
commit
c67d28c5f9
1 changed files with 8 additions and 1 deletions
|
@ -256,7 +256,7 @@ subtest 'list_public() tests' => sub {
|
|||
|
||||
subtest 'get() tests' => sub {
|
||||
|
||||
plan tests => 30;
|
||||
plan tests => 34;
|
||||
|
||||
$schema->storage->txn_begin;
|
||||
|
||||
|
@ -333,6 +333,13 @@ subtest 'get() tests' => sub {
|
|||
->json_is( '/not_for_loan_status' => 0, 'not_for_loan_status is 0' )
|
||||
->json_is( '/effective_not_for_loan_status' => 2, 'effective_not_for_loan_status now picks up itemtype level - item-level_itypes:1' );
|
||||
|
||||
$itype->notforloan(undef)->store();
|
||||
$t->get_ok( "//$userid:$password@/api/v1/items/" . $item->itemnumber )->status_is( 200, 'SWAGGER3.2.2' )
|
||||
->json_is( '/not_for_loan_status' => 0, 'not_for_loan_status is 0' )->json_is(
|
||||
'/effective_not_for_loan_status' => 0,
|
||||
'effective_not_for_loan_status now picks up itemtype level and falls back to 0 because undef'
|
||||
);
|
||||
|
||||
t::lib::Mocks::mock_preference( 'item-level_itypes', 0 );
|
||||
$t->get_ok( "//$userid:$password@/api/v1/items/" . $item->itemnumber )
|
||||
->status_is( 200, 'SWAGGER3.2.2' )
|
||||
|
|
Loading…
Reference in a new issue