|
Lines 17-22
my $schema = Koha::Database->new->schema;
Link Here
|
| 17 |
|
17 |
|
| 18 |
$schema->storage->txn_begin; |
18 |
$schema->storage->txn_begin; |
| 19 |
|
19 |
|
|
|
20 |
# Clear the cache, before and after |
| 21 |
Koha::Caches->get_instance->flush_all; |
| 22 |
|
| 20 |
subtest 'add_item_status' => sub { |
23 |
subtest 'add_item_status' => sub { |
| 21 |
|
24 |
|
| 22 |
plan tests => 2; |
25 |
plan tests => 2; |
|
Lines 40-49
subtest 'add_item_status' => sub {
Link Here
|
| 40 |
} |
43 |
} |
| 41 |
}); |
44 |
}); |
| 42 |
|
45 |
|
| 43 |
# Clear the cache to make sure the above values take effect |
|
|
| 44 |
my $cache = Koha::Caches->get_instance(); |
| 45 |
$cache->flush_all(); |
| 46 |
|
| 47 |
## FIRST ITEM HAS ALL THE STATUSES ## |
46 |
## FIRST ITEM HAS ALL THE STATUSES ## |
| 48 |
my $item_1 = $builder->build({ |
47 |
my $item_1 = $builder->build({ |
| 49 |
source => 'Item', |
48 |
source => 'Item', |
|
Lines 89-92
subtest 'add_item_status' => sub {
Link Here
|
| 89 |
|
88 |
|
| 90 |
}; |
89 |
}; |
| 91 |
|
90 |
|
|
|
91 |
# Clear the cache, before and after |
| 92 |
Koha::Caches->get_instance->flush_all; |
| 93 |
|
| 92 |
$schema->storage->txn_rollback; |
94 |
$schema->storage->txn_rollback; |
| 93 |
- |
|
|