From 578b5fef61ff20124f77b96a98b2688796e51b31 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 2 Feb 2016 13:58:16 +0000 Subject: [PATCH] Bug 15629: Fix tests - Koha::Library does not have ->categories but ->get_categories Signed-off-by: Kyle M Hall Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- t/db_dependent/Branch.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Branch.t b/t/db_dependent/Branch.t index e10abd3b7b..3d5243c57f 100644 --- a/t/db_dependent/Branch.t +++ b/t/db_dependent/Branch.t @@ -192,10 +192,10 @@ $b2_stored->add_to_categories([$CAT1]); is( Koha::Libraries->search->count, $count + 2, 'BRB added' ); my $b1info = Koha::Libraries->find( $b1->{branchcode} ); -is_deeply( $b1info->categories->count, 0, 'BRA has no categories' ); +is_deeply( $b1info->get_categories->count, 0, 'BRA has no categories' ); my $b2info = Koha::Libraries->find( $b2->{branchcode} ); -is_deeply( $b2->categories->count, 1, 'BRB has the category CAT1' ); +is_deeply( $b2info->get_categories->count, 1, 'BRB has the category CAT1' ); Koha::LibraryCategory->new($cat2)->store; is( Koha::LibraryCategories->search->count, $count_cat + 3, "Two categories added" ); -- 2.39.5