No idea if it will do the trick, wait and see...
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
# along with Koha; if not, see <http://www.gnu.org/licenses>.
use Modern::Perl;
+use DateTime;
use C4::Circulation;
use Koha::Database;
$dbh->do('DELETE FROM borrowers');
$dbh->do('DELETE FROM items');
+my $now_value = DateTime->now();
+my $mocked_datetime = Test::MockModule->new('DateTime');
+$mocked_datetime->mock( 'now', sub { return $now_value; } );
+
my $library = $builder->build( { source => 'Branch' } );
my $category = $builder->build( { source => 'Category' } );
my $itemtype = $builder->build( { source => 'Itemtype' } )->{itemtype};