Lines 1299-1309
subtest 'CanBookBeIssued + AllowMultipleIssuesOnABiblio' => sub {
Link Here
|
1299 |
|
1299 |
|
1300 |
t::lib::Mocks::mock_preference('AllowMultipleIssuesOnABiblio', 0); |
1300 |
t::lib::Mocks::mock_preference('AllowMultipleIssuesOnABiblio', 0); |
1301 |
( $error, $question, $alerts ) = CanBookBeIssued( $patron, $item_2->{barcode} ); |
1301 |
( $error, $question, $alerts ) = CanBookBeIssued( $patron, $item_2->{barcode} ); |
1302 |
is( keys(%$error) + keys(%$question) + keys(%$alerts), 0, 'No BIBLIO_ALREADY_ISSUED flag should be set if it iss a subscription' ); |
1302 |
is( keys(%$error) + keys(%$question) + keys(%$alerts), 0, 'No BIBLIO_ALREADY_ISSUED flag should be set if it is a subscription' ); |
1303 |
|
1303 |
|
1304 |
t::lib::Mocks::mock_preference('AllowMultipleIssuesOnABiblio', 1); |
1304 |
t::lib::Mocks::mock_preference('AllowMultipleIssuesOnABiblio', 1); |
1305 |
( $error, $question, $alerts ) = CanBookBeIssued( $patron, $item_2->{barcode} ); |
1305 |
( $error, $question, $alerts ) = CanBookBeIssued( $patron, $item_2->{barcode} ); |
1306 |
is( keys(%$error) + keys(%$question) + keys(%$alerts), 0, 'No BIBLIO_ALREADY_ISSUED flag should be set if it iss a subscription' ); |
1306 |
is( keys(%$error) + keys(%$question) + keys(%$alerts), 0, 'No BIBLIO_ALREADY_ISSUED flag should be set if it is a subscription' ); |
1307 |
}; |
1307 |
}; |
1308 |
|
1308 |
|
1309 |
sub set_userenv { |
1309 |
sub set_userenv { |
1310 |
- |
|
|