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

(-)a/t/db_dependent/Koha/Account/Lines.t (-2 / +4 lines)
Lines 35-41 my $builder = t::lib::TestBuilder->new; Link Here
35
35
36
subtest 'item() tests' => sub {
36
subtest 'item() tests' => sub {
37
37
38
    plan tests => 2;
38
    plan tests => 3;
39
39
40
    $schema->storage->txn_begin;
40
    $schema->storage->txn_begin;
41
41
Lines 64-69 subtest 'item() tests' => sub { Link Here
64
    is( ref( $account_line_item ), 'Koha::Item', 'Koha::Account::Line->item should return a Koha::Item' );
64
    is( ref( $account_line_item ), 'Koha::Item', 'Koha::Account::Line->item should return a Koha::Item' );
65
    is( $line->itemnumber, $account_line_item->itemnumber, 'Koha::Account::Line->item should return the correct item' );
65
    is( $line->itemnumber, $account_line_item->itemnumber, 'Koha::Account::Line->item should return the correct item' );
66
66
67
    $line->itemnumber(undef)->store;
68
    is( $line->item, undef, 'Koha::Account::Line->item should return undef if no item linked' );
69
67
    $schema->storage->txn_rollback;
70
    $schema->storage->txn_rollback;
68
};
71
};
69
72
70
- 

Return to bug 22006