Bugzilla – Attachment 33720 Details for
Bug 13280
t/Circulation_barcodedecode.t shouldn't depend on the DB
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13280: t/Circulation_barcodedecode.t shouldn't depend on the DB
Bug-13280-tCirculationbarcodedecodet-shouldnt-depe.patch (text/plain), 1.60 KB, created by
Robin Sheat
on 2014-11-20 00:34:49 UTC
(
hide
)
Description:
Bug 13280: t/Circulation_barcodedecode.t shouldn't depend on the DB
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2014-11-20 00:34:49 UTC
Size:
1.60 KB
patch
obsolete
>From b0453dc58ef221cc38f225481c5880596ea66b04 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Wed, 19 Nov 2014 18:00:17 -0300 >Subject: [PATCH] Bug 13280: t/Circulation_barcodedecode.t shouldn't depend on > the DB > >Signed-off-by: Robin Sheat <robin@catalyst.net.nz> >--- > t/Circulation_barcodedecode.t | 21 +++++++++++++++++++-- > 1 file changed, 19 insertions(+), 2 deletions(-) > >diff --git a/t/Circulation_barcodedecode.t b/t/Circulation_barcodedecode.t >index f76f7fc..5090e9b 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 <http://www.gnu.org/licenses>. > >-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'); > } > >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13280
:
33707
|
33720
|
33733