Bug 31223: Regression tests
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
d33f872965
commit
28896d9c30
|
|
@ -45,7 +45,7 @@ t::lib::Mocks::mock_config( 'enable_plugins', 1 );
|
|||
|
||||
subtest 'background_tasks() hooks tests' => sub {
|
||||
|
||||
plan tests => 5;
|
||||
plan tests => 6;
|
||||
|
||||
$schema->storage->txn_begin;
|
||||
|
||||
|
|
@ -78,6 +78,12 @@ subtest 'background_tasks() hooks tests' => sub {
|
|||
$tasks = $bj->type_to_class_mapping;
|
||||
$logger->warn_is("A plugin includes the 'background_tasks' method, but doesn't provide the required 'namespace' method (Koha::Plugin::Test)");
|
||||
|
||||
t::lib::Mocks::mock_config( 'enable_plugins', 0 );
|
||||
$bj = Koha::BackgroundJob->new;
|
||||
$tasks = $bj->type_to_class_mapping;
|
||||
|
||||
is_deeply( $tasks, $bj->core_types_to_classes, 'Only core mapping returned when plugins disabled' );
|
||||
|
||||
$schema->storage->txn_rollback;
|
||||
Koha::Plugins::Methods->delete;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue