Lines 29-35
use Koha::Item;
Link Here
|
29 |
use Koha::DateUtils qw( dt_from_string ); |
29 |
use Koha::DateUtils qw( dt_from_string ); |
30 |
use t::lib::TestBuilder; |
30 |
use t::lib::TestBuilder; |
31 |
|
31 |
|
32 |
use Test::More tests => 34; |
32 |
use Test::More tests => 35; |
33 |
use Test::Exception; |
33 |
use Test::Exception; |
34 |
use Test::Warn; |
34 |
use Test::Warn; |
35 |
|
35 |
|
Lines 225-230
subtest "store() tests" => sub {
Link Here
|
225 |
$schema->storage->txn_rollback(); |
225 |
$schema->storage->txn_rollback(); |
226 |
}; |
226 |
}; |
227 |
|
227 |
|
|
|
228 |
subtest "set_waiting() tests" => sub { |
229 |
|
230 |
plan tests => 1; |
231 |
|
232 |
$schema->storage->txn_begin(); |
233 |
|
234 |
# Disable logging |
235 |
t::lib::Mocks::mock_preference( 'HoldsLog', 0 ); |
236 |
|
237 |
my $hold = $builder->build_object({ class => 'Koha::Holds' }); |
238 |
|
239 |
$hold->waitingdate('2021-01-01'); |
240 |
|
241 |
$hold->set_waiting(); |
242 |
|
243 |
is($hold->waitingdate,'2021-01-01',"Setting waiting when already waiting should not update waitingdate"); |
244 |
|
245 |
}; |
246 |
|
228 |
subtest "delete() tests" => sub { |
247 |
subtest "delete() tests" => sub { |
229 |
|
248 |
|
230 |
plan tests => 6; |
249 |
plan tests => 6; |
231 |
- |
|
|