|
Lines 23-29
use t::lib::TestBuilder;
Link Here
|
| 23 |
use Test::MockObject; |
23 |
use Test::MockObject; |
| 24 |
use Test::Exception; |
24 |
use Test::Exception; |
| 25 |
|
25 |
|
| 26 |
use Test::More tests => 5; |
26 |
use Test::More tests => 6; |
| 27 |
|
27 |
|
| 28 |
my $schema = Koha::Database->new->schema; |
28 |
my $schema = Koha::Database->new->schema; |
| 29 |
my $builder = t::lib::TestBuilder->new; |
29 |
my $builder = t::lib::TestBuilder->new; |
|
Lines 487-491
subtest 'Final tests' => sub {
Link Here
|
| 487 |
$schema->storage->txn_rollback; |
487 |
$schema->storage->txn_rollback; |
| 488 |
}; |
488 |
}; |
| 489 |
|
489 |
|
|
|
490 |
subtest 'get_backend_plugin_names() tests' => sub { |
| 491 |
|
| 492 |
plan tests => 1; |
| 493 |
|
| 494 |
$schema->storage->txn_begin; |
| 495 |
|
| 496 |
my $config = Koha::ILL::Request::Config->new; |
| 497 |
t::lib::Mocks::mock_config( 'enable_plugins', 0 ); |
| 498 |
is( |
| 499 |
$config->get_backend_plugin_names(), 0, |
| 500 |
'get_backend_plugin_names returns empty list if plugins are disabled' |
| 501 |
); |
| 502 |
|
| 503 |
$schema->storage->txn_rollback; |
| 504 |
}; |
| 490 |
|
505 |
|
| 491 |
1; |
506 |
1; |
| 492 |
- |
|
|