From 8913e8cc1c18701172b6347f71634781e4db17cf 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 --- 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 e10abd3..3d5243c 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.1.4