Bugzilla – Attachment 127643 Details for
Bug 29273
Warning not caught in tests for plugins
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29273: Fix failing tests
Bug-29273-Fix-failing-tests.patch (text/plain), 3.05 KB, created by
Jonathan Druart
on 2021-11-15 13:16:01 UTC
(
hide
)
Description:
Bug 29273: Fix failing tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-11-15 13:16:01 UTC
Size:
3.05 KB
patch
obsolete
>From 4db7f711f20ba8ceeeb400d77818cb1d9483060e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 15 Nov 2021 14:15:22 +0100 >Subject: [PATCH] Bug 29273: Fix failing tests > >--- > t/db_dependent/ImportBatch.t | 7 ++++--- > t/db_dependent/Koha/Plugins/authority_hooks.t | 2 +- > t/db_dependent/Koha/REST/Plugin/PluginRoutes.t | 2 +- > t/db_dependent/Koha/Template/Plugin/KohaPlugins.t | 2 +- > 4 files changed, 7 insertions(+), 6 deletions(-) > >diff --git a/t/db_dependent/ImportBatch.t b/t/db_dependent/ImportBatch.t >index c96222de5e1..b24d8359745 100755 >--- a/t/db_dependent/ImportBatch.t >+++ b/t/db_dependent/ImportBatch.t >@@ -1,7 +1,7 @@ > #!/usr/bin/perl > > use Modern::Perl; >-use Test::More tests => 16; >+use Test::More tests => 17; > use utf8; > use File::Basename; > use File::Temp qw/tempfile/; >@@ -10,12 +10,13 @@ use t::lib::Mocks; > use t::lib::TestBuilder; > > use Koha::Database; >-use Koha::Plugins; > > BEGIN { > # Mock pluginsdir before loading Plugins module >- my $path = dirname(__FILE__) . '/../lib'; >+ my $path = dirname(__FILE__) . '/../lib/plugins'; > t::lib::Mocks::mock_config( 'pluginsdir', $path ); >+ >+ use_ok('Koha::Plugins'); > use_ok('C4::ImportBatch', qw( AddImportBatch GetImportBatch AddBiblioToBatch AddItemsToImportBiblio GetRecordFromImportBiblio SetMatchedBiblionumber GetImportBiblios GetItemNumbersFromImportBatch CleanBatch DeleteBatch RecordsFromMarcPlugin )); > } > >diff --git a/t/db_dependent/Koha/Plugins/authority_hooks.t b/t/db_dependent/Koha/Plugins/authority_hooks.t >index 75faee5ddc6..96e4b6b562a 100755 >--- a/t/db_dependent/Koha/Plugins/authority_hooks.t >+++ b/t/db_dependent/Koha/Plugins/authority_hooks.t >@@ -30,7 +30,7 @@ use t::lib::TestBuilder; > > BEGIN { > # Mock pluginsdir before loading Plugins module >- my $path = dirname(__FILE__) . '/../../../lib'; >+ my $path = dirname(__FILE__) . '/../../../lib/plugins'; > t::lib::Mocks::mock_config( 'pluginsdir', $path ); > > use_ok('Koha::Plugins'); >diff --git a/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t b/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t >index a0fc2dc51f4..9c6db7b89b1 100755 >--- a/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t >+++ b/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t >@@ -32,7 +32,7 @@ use Mojolicious::Lite; > > BEGIN { > # Mock pluginsdir before loading Plugins module >- my $path = dirname(__FILE__) . '/../../../../lib'; >+ my $path = dirname(__FILE__) . '/../../../../lib/plugins'; > t::lib::Mocks::mock_config( 'pluginsdir', $path ); > } > >diff --git a/t/db_dependent/Koha/Template/Plugin/KohaPlugins.t b/t/db_dependent/Koha/Template/Plugin/KohaPlugins.t >index 22cf7651f4c..04763b2f25f 100755 >--- a/t/db_dependent/Koha/Template/Plugin/KohaPlugins.t >+++ b/t/db_dependent/Koha/Template/Plugin/KohaPlugins.t >@@ -16,7 +16,7 @@ use C4::Context; > use t::lib::Mocks; > > BEGIN { >- push( @INC, dirname(__FILE__) . '/../../../../lib' ); >+ push( @INC, dirname(__FILE__) . '/../../../../lib/plugins' ); > > use_ok('Koha::Plugins'); > use_ok('Koha::Plugins::Handler'); >-- >2.25.1
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 29273
:
126503
|
126567
|
126582
|
127605
| 127643