View | Details | Raw Unified | Return to bug 15629
Collapse All | Expand All

(-)a/t/db_dependent/Branch.t (-3 / +2 lines)
Lines 192-201 $b2_stored->add_to_categories([$CAT1]); Link Here
192
is( Koha::Libraries->search->count, $count + 2, 'BRB added' );
192
is( Koha::Libraries->search->count, $count + 2, 'BRB added' );
193
193
194
my $b1info = Koha::Libraries->find( $b1->{branchcode} );
194
my $b1info = Koha::Libraries->find( $b1->{branchcode} );
195
is_deeply( $b1info->categories->count, 0, 'BRA has no categories' );
195
is_deeply( $b1info->get_categories->count, 0, 'BRA has no categories' );
196
196
197
my $b2info = Koha::Libraries->find( $b2->{branchcode} );
197
my $b2info = Koha::Libraries->find( $b2->{branchcode} );
198
is_deeply( $b2->categories->count, 1, 'BRB has the category CAT1' );
198
is_deeply( $b2info->get_categories->count, 1, 'BRB has the category CAT1' );
199
199
200
Koha::LibraryCategory->new($cat2)->store;
200
Koha::LibraryCategory->new($cat2)->store;
201
is( Koha::LibraryCategories->search->count, $count_cat + 3, "Two categories added" );
201
is( Koha::LibraryCategories->search->count, $count_cat + 3, "Two categories added" );
202
- 

Return to bug 15629