|
Lines 183-193
subtest '_status' => sub {
Link Here
|
| 183 |
$schema->storage->txn_rollback; |
183 |
$schema->storage->txn_rollback; |
| 184 |
}; |
184 |
}; |
| 185 |
|
185 |
|
| 186 |
subtest 'store PreventWithDrawingItemsStatus' => sub { |
186 |
subtest 'store PreventWithdrawingItemsStatus' => sub { |
| 187 |
plan tests => 2; |
187 |
plan tests => 2; |
| 188 |
$schema->storage->txn_begin; |
188 |
$schema->storage->txn_begin; |
| 189 |
|
189 |
|
| 190 |
t::lib::Mocks::mock_preference( 'PreventWithDrawingItemsStatus', 'intransit,checkedout' ); |
190 |
t::lib::Mocks::mock_preference( 'PreventWithdrawingItemsStatus', 'intransit,checkedout' ); |
| 191 |
my $library_1 = $builder->build( { source => 'Branch' } ); |
191 |
my $library_1 = $builder->build( { source => 'Branch' } ); |
| 192 |
my $library_2 = $builder->build( { source => 'Branch' } ); |
192 |
my $library_2 = $builder->build( { source => 'Branch' } ); |
| 193 |
|
193 |
|
|
Lines 230-236
subtest 'store PreventWithDrawingItemsStatus' => sub {
Link Here
|
| 230 |
'Koha::Exceptions::Item::Transfer::InTransit', |
230 |
'Koha::Exceptions::Item::Transfer::InTransit', |
| 231 |
'Exception thrown when trying to withdraw item in transit'; |
231 |
'Exception thrown when trying to withdraw item in transit'; |
| 232 |
|
232 |
|
| 233 |
t::lib::Mocks::mock_preference( 'PreventWithDrawingItemsStatus', '' ); |
233 |
t::lib::Mocks::mock_preference( 'PreventWithdrawingItemsStatus', '' ); |
| 234 |
|
234 |
|
| 235 |
$schema->storage->txn_rollback; |
235 |
$schema->storage->txn_rollback; |
| 236 |
}; |
236 |
}; |
| 237 |
- |
|
|