Bugzilla – Attachment 47712 Details for
Bug 15629
Move the C4::Branch related code to Koha::Libraries - part 3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15629: Fix tests - Koha::Library does not have ->categories but ->get_categories
Bug-15629-Fix-tests---KohaLibrary-does-not-have--c.patch (text/plain), 1.22 KB, created by
Kyle M Hall (khall)
on 2016-02-05 16:22:33 UTC
(
hide
)
Description:
Bug 15629: Fix tests - Koha::Library does not have ->categories but ->get_categories
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-02-05 16:22:33 UTC
Size:
1.22 KB
patch
obsolete
>From 8913e8cc1c18701172b6347f71634781e4db17cf Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <kyle@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 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
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 15629
:
46997
|
46998
|
46999
|
47000
|
47001
|
47002
|
47518
|
47519
|
47520
|
47521
|
47522
|
47523
|
47553
|
47701
|
47706
|
47707
|
47708
|
47709
|
47710
|
47711
| 47712 |
47713