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

(-)a/t/db_dependent/Items.t (-4 / +3 lines)
Lines 403-416 subtest 'Koha::Item(s) tests' => sub { Link Here
403
403
404
    # Get item.
404
    # Get item.
405
    my $item = Koha::Items->find( $itemnumber );
405
    my $item = Koha::Items->find( $itemnumber );
406
    ok( $item, "Got Koha::Item" );
406
    is( ref($item), 'Koha::Item', "Got Koha::Item" );
407
407
408
    my $homebranch = $item->home_branch();
408
    my $homebranch = $item->home_branch();
409
    ok( $homebranch, "Got Koha::Branch from home_branch method" );
409
    is( ref($homebranch), 'Koha::Branch', "Got Koha::Branch from home_branch method" );
410
    is( $homebranch->branchcode(), $branch1, "Home branch code matches homebranch" );
410
    is( $homebranch->branchcode(), $branch1, "Home branch code matches homebranch" );
411
411
412
    my $holdingbranch = $item->holding_branch();
412
    my $holdingbranch = $item->holding_branch();
413
    ok( $holdingbranch, "Got Koha::Branch from holding_branch method" );
413
    is( ref($holdingbranch), 'Koha::Branch', "Got Koha::Branch from holding_branch method" );
414
    is( $holdingbranch->branchcode(), $branch2, "Home branch code matches holdingbranch" );
414
    is( $holdingbranch->branchcode(), $branch2, "Home branch code matches holdingbranch" );
415
};
415
};
416
416
417
- 

Return to bug 13853