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

(-)a/t/db_dependent/Items.t (-2 / +11 lines)
Lines 1040-1045 subtest 'ModItemFromMarc' => sub { Link Here
1040
    subtest 'permanent_location' => sub {
1040
    subtest 'permanent_location' => sub {
1041
        plan tests => 6;
1041
        plan tests => 6;
1042
1042
1043
        # Make sure items.permanent_location is not mapped
1044
        Koha::MarcSubfieldStructures->search(
1045
            {
1046
                frameworkcode => q{},
1047
                kohafield     => 'items.permanent_location',
1048
            }
1049
        )->delete;
1050
        Koha::Caches->get_instance->clear_from_cache( "MarcSubfieldStructure-" );
1051
1043
        my $item = $builder->build_sample_item;
1052
        my $item = $builder->build_sample_item;
1044
1053
1045
        # By default, setting location to something new should set permanent location to the same thing
1054
        # By default, setting location to something new should set permanent location to the same thing
Lines 1079-1082 subtest 'ModItemFromMarc' => sub { Link Here
1079
    };
1088
    };
1080
1089
1081
    $schema->storage->txn_rollback;
1090
    $schema->storage->txn_rollback;
1082
};
1091
    Koha::Caches->get_instance->clear_from_cache( "MarcSubfieldStructure-" );
1092
}
1083
- 

Return to bug 27837