Bugzilla – Attachment 33732 Details for
Bug 13279
t/Breeding.t shouldn't depend on the DB
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13279: t/Breeding.t shouldn't depend on the DB
Bug-13279-tBreedingt-shouldnt-depend-on-the-DB.patch (text/plain), 1.54 KB, created by
Jonathan Druart
on 2014-11-20 09:28:36 UTC
(
hide
)
Description:
Bug 13279: t/Breeding.t shouldn't depend on the DB
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-11-20 09:28:36 UTC
Size:
1.54 KB
patch
obsolete
>From 23b980e306f9132efbf70bd4b4b4ede94951be53 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Wed, 19 Nov 2014 17:59:38 -0300 >Subject: [PATCH] Bug 13279: t/Breeding.t shouldn't depend on the DB > >Signed-off-by: Robin Sheat <robin@catalyst.net.nz> > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > t/Breeding.t | 24 +++++++++++++++++++----- > 1 file changed, 19 insertions(+), 5 deletions(-) > >diff --git a/t/Breeding.t b/t/Breeding.t >index e672bf1..6effd9f 100755 >--- a/t/Breeding.t >+++ b/t/Breeding.t >@@ -1,14 +1,28 @@ > #!/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 <http://www.gnu.org/licenses>. > >-use strict; >-use warnings; >+use Modern::Perl; > > use Test::More tests => 1; >+use t::lib::Mocks; > > BEGIN { >- use_ok('C4::Breeding'); >+ # Mock the DB connexion and C4::Context >+ my $context = t::lib::Mocks::mock_dbh; >+ use_ok('C4::Breeding'); > } > >-- >2.1.0
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 13279
:
33706
|
33721
| 33732