Lines 19-30
Link Here
|
19 |
|
19 |
|
20 |
use Modern::Perl; |
20 |
use Modern::Perl; |
21 |
|
21 |
|
22 |
use Test::More tests => 20; |
22 |
use Test::More tests => 21; |
23 |
use Test::Exception; |
23 |
use Test::Exception; |
24 |
use Test::Warn; |
24 |
use Test::Warn; |
25 |
|
25 |
|
26 |
use Koha::Authority::Types; |
26 |
use Koha::Authority::Types; |
27 |
use Koha::Cities; |
27 |
use Koha::Cities; |
|
|
28 |
use Koha::Biblios; |
28 |
use Koha::Patron::Category; |
29 |
use Koha::Patron::Category; |
29 |
use Koha::Patron::Categories; |
30 |
use Koha::Patron::Categories; |
30 |
use Koha::Patrons; |
31 |
use Koha::Patrons; |
Lines 776-779
subtest "from_api_mapping() tests" => sub {
Link Here
|
776 |
); |
777 |
); |
777 |
|
778 |
|
778 |
$schema->storage->txn_rollback; |
779 |
$schema->storage->txn_rollback; |
779 |
}; |
780 |
}; |
|
|
781 |
|
782 |
subtest 'prefetch_whitelist() tests' => sub { |
783 |
|
784 |
plan tests => 2; |
785 |
|
786 |
$schema->storage->txn_begin; |
787 |
|
788 |
my $biblios = Koha::Biblios->new; |
789 |
|
790 |
my $prefetch_whitelist = $biblios->prefetch_whitelist; |
791 |
|
792 |
ok( |
793 |
exists $prefetch_whitelist->{orders}, |
794 |
'Relationship matching method name is listed' |
795 |
); |
796 |
is( |
797 |
$prefetch_whitelist->{orders}, |
798 |
'Koha::Acquisition::Order', |
799 |
'Guessed the object class correctly' |
800 |
); |
801 |
|
802 |
$schema->storage->txn_rollback; |
803 |
}; |
780 |
- |
|
|