View | Details | Raw Unified | Return to bug 29326
Collapse All | Expand All

(-)a/t/db_dependent/Koha/Item.t (-3 / +8 lines)
Lines 3356-3362 subtest 'current_branchtransfers relationship' => sub { Link Here
3356
3356
3357
subtest 'location_update_trigger() tests' => sub {
3357
subtest 'location_update_trigger() tests' => sub {
3358
3358
3359
    plan tests => 10;
3359
    plan tests => 12;
3360
3360
3361
    $schema->storage->txn_begin;
3361
    $schema->storage->txn_begin;
3362
3362
Lines 3394-3399 subtest 'location_update_trigger() tests' => sub { Link Here
3394
        $item->location_update_trigger($action);
3394
        $item->location_update_trigger($action);
3395
        is( $item->location, q{}, q{`_BLANK_` does the job} );
3395
        is( $item->location, q{}, q{`_BLANK_` does the job} );
3396
3396
3397
        t::lib::Mocks::mock_preference( $pref, qq{_BLANK_: $location} );
3398
        $item->location('')->store();
3399
3400
        $item->location_update_trigger($action);
3401
        is( $item->location, $location, q{`_BLANK_` as the key does the job} );
3402
3397
        t::lib::Mocks::mock_preference( $pref, qq{GEN: _BLANK_\n_BLANK_: PROC\n$location: _PERM_} );
3403
        t::lib::Mocks::mock_preference( $pref, qq{GEN: _BLANK_\n_BLANK_: PROC\n$location: _PERM_} );
3398
3404
3399
        $item->set(
3405
        $item->set(
Lines 3874-3877 subtest 'effective_bookable() tests' => sub { Link Here
3874
    );
3880
    );
3875
3881
3876
    $schema->storage->txn_rollback;
3882
    $schema->storage->txn_rollback;
3877
};
3883
};
3878
- 

Return to bug 29326