Bugzilla – Attachment 76610 Details for
Bug 20900
Yet another test assumes that CPL is present
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20900: Add CPL branch in t_Batch.t too
Bug-20900-Add-CPL-branch-in-tBatcht-too.patch (text/plain), 1.36 KB, created by
Marcel de Rooy
on 2018-07-02 08:44:02 UTC
(
hide
)
Description:
Bug 20900: Add CPL branch in t_Batch.t too
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2018-07-02 08:44:02 UTC
Size:
1.36 KB
patch
obsolete
>From b70ad9eccd1bff370fa32b5dbc900f05021052ca Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 2 Jul 2018 10:41:24 +0200 >Subject: [PATCH] Bug 20900: Add CPL branch in t_Batch.t too >Content-Type: text/plain; charset=utf-8 > >Same fix as previous patch. > >Test plan: >Run t/db_dependent/Labels/t_Batch.t (without CPL branch) > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/Labels/t_Batch.t | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Labels/t_Batch.t b/t/db_dependent/Labels/t_Batch.t >index 117a330..ed8c8e8 100644 >--- a/t/db_dependent/Labels/t_Batch.t >+++ b/t/db_dependent/Labels/t_Batch.t >@@ -21,11 +21,15 @@ > use Modern::Perl; > > use Test::More tests => 24; >-use C4::Context; > use MARC::Record; > use MARC::Field; >+ >+use t::lib::TestBuilder; >+ >+use C4::Context; > use C4::Biblio; > use C4::Items; >+use Koha::Libraries; > > BEGIN { > use_ok('C4::Labels::Batch'); >@@ -36,6 +40,10 @@ my $dbh = C4::Context->dbh; > $dbh->{AutoCommit} = 0; > $dbh->{RaiseError} = 1; > >+my $builder = t::lib::TestBuilder->new; >+$builder->build({ source => 'Branch', value => { branchcode => 'CPL' } }) >+ unless Koha::Libraries->find('CPL'); >+ > my $sth = $dbh->prepare('SELECT branchcode FROM branches b LIMIT 0,1'); > $sth->execute(); > my $branch_code = $sth->fetchrow_hashref()->{'branchcode'}; >-- >2.1.4
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 20900
:
75914
|
76610
|
76752
|
76753