Lines 394-401
ok( $item2->location eq 'FIC', 'UpdateItemLocationOnCheckin does not modify valu
Link Here
|
394 |
t::lib::Mocks::mock_preference( 'UpdateItemLocationOnCheckin', 'FIC: GEN' ); |
394 |
t::lib::Mocks::mock_preference( 'UpdateItemLocationOnCheckin', 'FIC: GEN' ); |
395 |
AddReturn( 'barcode_4', $branchcode_1 ); |
395 |
AddReturn( 'barcode_4', $branchcode_1 ); |
396 |
$item2 = Koha::Items->find( $itemnumber2 ); |
396 |
$item2 = Koha::Items->find( $itemnumber2 ); |
397 |
ok( $item2->location eq 'GEN', q{UpdateItemLocationOnCheckin updates location value from 'FIC' to 'GEN' with setting "FIC: GEN"} ); |
397 |
is( $item2->location, 'GEN', q{UpdateItemLocationOnCheckin updates location value from 'FIC' to 'GEN' with setting "FIC: GEN"} ); |
398 |
ok( $item2->permanent_location eq 'GEN', q{UpdateItemLocationOnCheckin updates permanent_location value from 'FIC' to 'GEN' with setting "FIC: GEN"} ); |
398 |
is( $item2->permanent_location, 'GEN', q{UpdateItemLocationOnCheckin updates permanent_location value from 'FIC' to 'GEN' with setting "FIC: GEN"} ); |
399 |
AddReturn( 'barcode_4', $branchcode_1 ); |
399 |
AddReturn( 'barcode_4', $branchcode_1 ); |
400 |
$item2 = Koha::Items->find( $itemnumber2 ); |
400 |
$item2 = Koha::Items->find( $itemnumber2 ); |
401 |
ok( $item2->location eq 'GEN', q{UpdateItemLocationOnCheckin does not update location value from 'GEN' with setting "FIC: GEN"} ); |
401 |
ok( $item2->location eq 'GEN', q{UpdateItemLocationOnCheckin does not update location value from 'GEN' with setting "FIC: GEN"} ); |
402 |
- |
|
|