View | Details | Raw Unified | Return to bug 21086
Collapse All | Expand All

(-)a/t/db_dependent/DecreaseLoanHighHolds.t (-1 / +1 lines)
Lines 45-51 $dbh->do('DELETE FROM items'); Link Here
45
45
46
my $now_value       = DateTime->now();
46
my $now_value       = DateTime->now();
47
my $mocked_datetime = Test::MockModule->new('DateTime');
47
my $mocked_datetime = Test::MockModule->new('DateTime');
48
$mocked_datetime->mock( 'now', sub { return $now_value; } );
48
$mocked_datetime->mock( 'now', sub { return $now_value->clone; } );
49
49
50
my $library  = $builder->build( { source => 'Branch' } );
50
my $library  = $builder->build( { source => 'Branch' } );
51
my $category = $builder->build( { source => 'Category' } );
51
my $category = $builder->build( { source => 'Category' } );
(-)a/t/db_dependent/Sitemapper.t (-2 / +1 lines)
Lines 34-40 BEGIN { Link Here
34
34
35
my $now_value       = DateTime->now();
35
my $now_value       = DateTime->now();
36
my $mocked_datetime = Test::MockModule->new('DateTime');
36
my $mocked_datetime = Test::MockModule->new('DateTime');
37
$mocked_datetime->mock( 'now', sub { return $now_value; } );
37
$mocked_datetime->mock( 'now', sub { return $now_value->clone; } );
38
38
39
sub slurp {
39
sub slurp {
40
    my $file = shift;
40
    my $file = shift;
41
- 

Return to bug 21086