Lines 37-43
my $builder = t::lib::TestBuilder->new;
Link Here
|
37 |
$schema->storage->txn_begin; |
37 |
$schema->storage->txn_begin; |
38 |
|
38 |
|
39 |
subtest 'buildKohaItemsNamespace status tests' => sub { |
39 |
subtest 'buildKohaItemsNamespace status tests' => sub { |
40 |
plan tests => 17; |
40 |
plan tests => 18; |
41 |
|
41 |
|
42 |
t::lib::Mocks::mock_preference('Reference_NFL_Statuses', '1|2'); |
42 |
t::lib::Mocks::mock_preference('Reference_NFL_Statuses', '1|2'); |
43 |
t::lib::Mocks::mock_preference( 'OPACResultsLibrary', 'holdingbranch' ); |
43 |
t::lib::Mocks::mock_preference( 'OPACResultsLibrary', 'holdingbranch' ); |
Lines 83-88
subtest 'buildKohaItemsNamespace status tests' => sub {
Link Here
|
83 |
t::lib::Mocks::mock_preference('Reference_NFL_Statuses', '2'); |
83 |
t::lib::Mocks::mock_preference('Reference_NFL_Statuses', '2'); |
84 |
$xml = C4::XSLT::buildKohaItemsNamespace( $item->biblionumber,[]); |
84 |
$xml = C4::XSLT::buildKohaItemsNamespace( $item->biblionumber,[]); |
85 |
like($xml,qr{<status>reallynotforloan</status>},"reallynotforloan when we change Reference_NFL_Statuses"); |
85 |
like($xml,qr{<status>reallynotforloan</status>},"reallynotforloan when we change Reference_NFL_Statuses"); |
|
|
86 |
t::lib::Mocks::mock_preference('Reference_NFL_Statuses', q{}); # empty, same effect |
87 |
$xml = C4::XSLT::buildKohaItemsNamespace( $item->biblionumber,[]); |
88 |
like($xml,qr{<status>reallynotforloan</status>},"reallynotforloan when we empty Reference_NFL_Statuses"); |
86 |
t::lib::Mocks::mock_preference('Reference_NFL_Statuses', '1|2'); |
89 |
t::lib::Mocks::mock_preference('Reference_NFL_Statuses', '1|2'); |
87 |
} |
90 |
} |
88 |
|
91 |
|
89 |
- |
|
|