Skip to content

Commit

Permalink
Issue #616: import the time mocking functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Nov 5, 2020
1 parent 3d1f3fc commit 3cd7b01
Show file tree
Hide file tree
Showing 91 changed files with 91 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/test/ACL/DB/ACL.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/AuthSession.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Cache.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

our $Self;

Expand Down
1 change: 1 addition & 0 deletions scripts/test/CommunicationLog.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/CommunicationLog/DB.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Console/Command/Admin/Article/StorageSwitch.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Console/Command/Maint/FormDraft/Delete.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Console/Command/Maint/GenericAgent/Run.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Console/Command/Maint/Log/CommunicationLog.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Console/Command/Maint/Ticket/PendingCheck.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Daemon/SchedulerDB.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Daemon/SchedulerDB/CronTaskToExecute.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use utf8;
# Set up the test driver $Self when we are running as a standalone script.
use Test2::V0;
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Daemon/SchedulerDBFutureTask.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Daemon/SchedulerDBRecurrentTask.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/DynamicField/EditFieldRender.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/DynamicField/SearchFieldParameterBuild.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/DynamicField/SearchFieldRender.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Email/Bounce.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Event/Escalations.t
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use Test2::API qw/context/;

# OTOBO modules
use Kernel::System::UnitTest::RegisterDriver; # set up $Self and $Kernel::OM
use Kernel::System::UnitTest::MockTime qw(:all);

our $Self;

Expand Down
1 change: 1 addition & 0 deletions scripts/test/GenericAgent.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/GenericInterface/ErrorHandling/RequestRetry.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/GoogleAuthenticator.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Language/Time.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self %Param));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Layout/BuildDateSelection.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Layout/Template/Render.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self %Param));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/PID.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/PostMaster/FollowUp.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/PostMaster/FollowUpArticleVisibilityCheck.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/PostMaster/FollowUpCheck/Attachments.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/PostMaster/FollowUpCheck/References.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/PostMaster/PendingTime.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/ProcessManagement/DB/Activity.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/ProcessManagement/DB/ActivityDialog.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/ProcessManagement/DB/Process.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/ProcessManagement/DB/Transition.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/ProcessManagement/DB/TransitionAction.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Selenium/Agent/Admin/TicketAppointments.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Selenium/Agent/AgentTicketQueue.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
1 change: 1 addition & 0 deletions scripts/test/Selenium/Agent/AgentTicketSearch.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use utf8;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;
use Kernel::System::UnitTest::MockTime qw(:all);

use vars (qw($Self));

Expand Down
Loading

0 comments on commit 3cd7b01

Please sign in to comment.