From 1171b28145c5cf5ed6688721b901c851ac54f7f0 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi 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 Signed-off-by: Kyle M Hall --- 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 587be95767..afa8b20411 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.39.5