Bug 23284: Remove test duplication
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 9 Jul 2019 07:26:15 +0000 (08:26 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 9 Jul 2019 07:27:40 +0000 (08:27 +0100)
A duplicate test was introduced during rebaseing work on bug 21073

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

t/db_dependent/Plugins.t

index d5f78f9..052b7ea 100755 (executable)
@@ -25,7 +25,7 @@ use File::Temp qw( tempdir tempfile );
 use FindBin qw($Bin);
 use Module::Load::Conditional qw(can_load);
 use Test::MockModule;
-use Test::More tests => 52;
+use Test::More tests => 51;
 
 use C4::Context;
 use Koha::Database;
@@ -90,27 +90,6 @@ subtest 'Version upgrade tests' => sub {
     $schema->storage->txn_rollback;
 };
 
-subtest 'Version upgrade tests' => sub {
-
-    plan tests => 1;
-
-    $schema->storage->txn_begin;
-
-    my $plugin = Koha::Plugin::Test->new( { enable_plugins => 1, cgi => CGI->new } );
-
-    # make sure there's no version on the DB
-    $schema->resultset('PluginData')
-        ->search( { plugin_class => $plugin->{class}, plugin_key => '__INSTALLED_VERSION__' } )
-        ->delete;
-
-    $plugin = Koha::Plugin::Test->new( { enable_plugins => 1, cgi => CGI->new } );
-    my $version = $plugin->retrieve_data('__INSTALLED_VERSION__');
-
-    is( $version, $plugin->get_metadata->{version}, 'Version has been populated correctly' );
-
-    $schema->storage->txn_rollback;
-};
-
 subtest 'is_enabled() tests' => sub {
 
     plan tests => 3;