X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=t%2FCirculation_barcodedecode.t;h=5090e9bc84388cabd7d77c2b57ddb6e4de3c941e;hb=ef6bc21b2c4ebe04f6d22d081e447f6bb2955029;hp=f76f7fcff4bf8327a8d5a5cf80ce58ab12202542;hpb=0d4acbba5c5db238eb42ed37dc9ba3dc2f36974b;p=koha-ffzg.git diff --git a/t/Circulation_barcodedecode.t b/t/Circulation_barcodedecode.t index f76f7fcff4..5090e9bc84 100644 --- a/t/Circulation_barcodedecode.t +++ b/t/Circulation_barcodedecode.t @@ -1,14 +1,31 @@ #!/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. +# +# 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 => 26; +use t::lib::Mocks; + C4::Context->_new_userenv(123456); C4::Context->set_userenv(1,'kmkale' , 1, 'kk1' , 'IMS', 0, 'kmkale@anantcorp.com'); BEGIN { + # Mock the DB connexion and C4::Context + my $context = t::lib::Mocks::mock_dbh; use_ok('C4::Circulation'); }