Lines 773-779
subtest "from_api_mapping() tests" => sub {
Link Here
|
773 |
|
773 |
|
774 |
subtest 'prefetch_whitelist() tests' => sub { |
774 |
subtest 'prefetch_whitelist() tests' => sub { |
775 |
|
775 |
|
776 |
plan tests => 2; |
776 |
plan tests => 3; |
777 |
|
777 |
|
778 |
$schema->storage->txn_begin; |
778 |
$schema->storage->txn_begin; |
779 |
|
779 |
|
Lines 788-794
subtest 'prefetch_whitelist() tests' => sub {
Link Here
|
788 |
is( |
788 |
is( |
789 |
$prefetch_whitelist->{orders}, |
789 |
$prefetch_whitelist->{orders}, |
790 |
'Koha::Acquisition::Order', |
790 |
'Koha::Acquisition::Order', |
791 |
'Guessed the object class correctly' |
791 |
'Guessed the non-standard object class correctly' |
|
|
792 |
); |
793 |
|
794 |
is( |
795 |
$prefetch_whitelist->{items}, |
796 |
'Koha::Item', |
797 |
'Guessed the standard object class correctly' |
792 |
); |
798 |
); |
793 |
|
799 |
|
794 |
$schema->storage->txn_rollback; |
800 |
$schema->storage->txn_rollback; |
795 |
- |
|
|