Bugzilla – Attachment 57567 Details for
Bug 17640
t/db_dependent/Template/Plugin/Categories.t is failing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17640: (Jonathan complain followup) Use Koha::*->search->delete instead
Bug-17640-Jonathan-complain-followup-Use-Koha-sear.patch (text/plain), 1.28 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-11-16 16:16:58 UTC
(
hide
)
Description:
Bug 17640: (Jonathan complain followup) Use Koha::*->search->delete instead
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-11-16 16:16:58 UTC
Size:
1.28 KB
patch
obsolete
>From 0d619e353c9a37e5f4125d1dba73c53bbe54d181 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 16 Nov 2016 13:15:52 -0300 >Subject: [PATCH] Bug 17640: (Jonathan complain followup) Use > Koha::*->search->delete instead > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Template/Plugin/Categories.t | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > >diff --git a/t/db_dependent/Template/Plugin/Categories.t b/t/db_dependent/Template/Plugin/Categories.t >index 587be95..afa8b20 100644 >--- a/t/db_dependent/Template/Plugin/Categories.t >+++ b/t/db_dependent/Template/Plugin/Categories.t >@@ -18,18 +18,21 @@ > use Modern::Perl; > > use Test::More tests => 4; >+use t::lib::TestBuilder; > >+use Koha::Patron::Categories; >+use Koha::Issues; >+use Koha::Patrons; > use Koha::Database; > use Koha::Template::Plugin::Categories; >-use t::lib::TestBuilder; > > my $schema = Koha::Database->new->schema; > $schema->storage->txn_begin; > > # Delete all categories >-$schema->resultset('Issue')->search->delete; >-$schema->resultset('Borrower')->search->delete; >-$schema->resultset('Category')->search->delete; >+Koha::Issues->search->delete; >+Koha::Patrons->search->delete; >+Koha::Patron::Categories->search->delete; > > my $builder = t::lib::TestBuilder->new; > >-- >2.7.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 17640
:
57530
|
57537
|
57555
|
57556
|
57557
|
57558
|
57559
| 57567