From af7c25d2493bb3ef4f3f198c1181b98e8f1025f6 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Wed, 3 Jul 2019 02:35:16 +0000 Subject: [PATCH] Bug 23230: (follow-up) Fix broken tests Before patch, the new tests don't run. After patch, they do. Signed-off-by: Mark Tompsett Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize (cherry picked from commit 288cc505557fdcb167737f1894cee581526b4741) Signed-off-by: Fridolin Somers --- t/db_dependent/Plugins.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Plugins.t b/t/db_dependent/Plugins.t index 62027641b3..0930202a52 100755 --- a/t/db_dependent/Plugins.t +++ b/t/db_dependent/Plugins.t @@ -202,6 +202,8 @@ subtest 'Test _version_compare' => sub { plan tests => 12; + t::lib::Mocks::mock_config( 'enable_plugins', 1 ); + is( Koha::Plugins::Base::_version_compare( '1.1.1', '2.2.2' ), -1, "1.1.1 is less then 2.2.2" ); is( Koha::Plugins::Base::_version_compare( '2.2.2', '1.1.1' ), 1, "1.1.1 is greater then 2.2.2" ); is( Koha::Plugins::Base::_version_compare( '1.1.1', '1.1.1' ), 0, "1.1.1 is equal to 1.1.1" ); -- 2.39.2