Skip to content

Commit

Permalink
Issue #666: load the test module Test2::V0
Browse files Browse the repository at this point in the history
For neater test functions.
  • Loading branch information
bschmalhofer committed Dec 21, 2020
1 parent dae0c38 commit ef64129
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions scripts/test/Package.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@

use strict;
use warnings;
use v5.24;
use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
# core modules
use File::Copy qw(copy move);
use File::stat;

use vars (qw($Self));
# CPAN modules
use Test2::V0;

use File::Copy;
# OTOBO modules
use Kernel::System::UnitTest::RegisterDriver; # Set up $Self and $Kernel::System::OM

our $Self;

# get needed objects
my $ConfigObject = $Kernel::OM->Get('Kernel::Config');
Expand Down Expand Up @@ -1140,9 +1146,4 @@ if ( !$DeveloperSystem ) {
chmod 0755, $Home . '/' . 'bin/otobo.CheckSum.pl';
}

# cleanup cache is done by RestoreDatabase


$Self->DoneTesting();


done_testing();

0 comments on commit ef64129

Please sign in to comment.