Lines 101-107
my $builder = t::lib::TestBuilder->new;
Link Here
|
101 |
my $dbh = C4::Context->dbh; |
101 |
my $dbh = C4::Context->dbh; |
102 |
|
102 |
|
103 |
# Prevent random failures by mocking ->now |
103 |
# Prevent random failures by mocking ->now |
104 |
my $now_value = DateTime->now(); |
104 |
my $now_value = dt_from_string; |
105 |
my $mocked_datetime = Test::MockModule->new('DateTime'); |
105 |
my $mocked_datetime = Test::MockModule->new('DateTime'); |
106 |
$mocked_datetime->mock( 'now', sub { return $now_value->clone; } ); |
106 |
$mocked_datetime->mock( 'now', sub { return $now_value->clone; } ); |
107 |
|
107 |
|
108 |
- |
|
|