Bugzilla – Attachment 138390 Details for
Bug 31223
Batch edit items explodes if plugins disabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31223: Regression tests
Bug-31223-Regression-tests.patch (text/plain), 1.57 KB, created by
Joonas Kylmälä
on 2022-07-30 16:59:48 UTC
(
hide
)
Description:
Bug 31223: Regression tests
Filename:
MIME Type:
Creator:
Joonas Kylmälä
Created:
2022-07-30 16:59:48 UTC
Size:
1.57 KB
patch
obsolete
>From 4f699d556462fa27c0edcb5dd15135225ca91bf1 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 26 Jul 2022 10:48:21 -0300 >Subject: [PATCH] Bug 31223: Regression tests >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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> >--- > t/db_dependent/Koha/Plugins/BackgroundJob.t | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Plugins/BackgroundJob.t b/t/db_dependent/Koha/Plugins/BackgroundJob.t >index 8d2a0e5e18..26139ddeb4 100755 >--- a/t/db_dependent/Koha/Plugins/BackgroundJob.t >+++ b/t/db_dependent/Koha/Plugins/BackgroundJob.t >@@ -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; > }; >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31223
:
138126
|
138127
|
138128
|
138129
|
138130
|
138131
|
138142
|
138143
|
138144
| 138390 |
138391