From 51a9105e6a8ce888b948dca3927faa856cb01f19 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 19 Nov 2014 18:03:47 -0300 Subject: [PATCH] Bug 13283: t/Overdues.t shouldn't depend on the DB Signed-off-by: Robin Sheat Signed-off-by: Jonathan Druart --- t/Overdues.t | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/t/Overdues.t b/t/Overdues.t index 62725cb..f0d8a8c 100755 --- a/t/Overdues.t +++ b/t/Overdues.t @@ -1,14 +1,29 @@ #!/usr/bin/perl + +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# Koha is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# This Koha test module is a stub! -# Add more tests here!!! +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . -use strict; -use warnings; +use Modern::Perl; use Test::More tests => 1; +use t::lib::Mocks; BEGIN { - use_ok('C4::Overdues'); + # Mock the DB connexion and C4::Context + my $context = t::lib::Mocks::mock_dbh; + use_ok('C4::Overdues'); } +1; -- 2.1.0