From fabca26fd2841f681af24c04754c1aa8c321b000 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 13 Dec 2023 14:28:02 +0000 Subject: [PATCH] Bug 35536: Tiny fix in PluginRoutes.t Content-Type: text/plain; charset=utf-8 There was a change in record counts in plugin_data and methods between first part and last part of subtest 'needs_install use case tests'. This fix makes the situation at the start of the last part more similar. Signed-off-by: Marcel de Rooy --- t/db_dependent/Koha/REST/Plugin/PluginRoutes.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t b/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t index 66746508ed..a92b380af6 100755 --- a/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t +++ b/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t @@ -234,7 +234,8 @@ subtest 'needs_install use case tests' => sub { t::lib::Mocks::mock_preference('Version', '3.0.0'); - $schema->resultset('PluginData')->delete; + Koha::Plugins::Methods->delete; + $plugins = Koha::Plugins->new; $plugins->InstallPlugins; # re-initialize Koha::REST::V1 after mocking -- 2.30.2