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

(-)a/t/db_dependent/Koha/Acquisition/Booksellers.t (-18 lines)
Lines 39-49 subtest '->baskets() tests' => sub { Link Here
39
39
40
    $schema->storage->txn_begin();
40
    $schema->storage->txn_begin();
41
41
42
    # Delete existing data
43
    $schema->resultset('Aqorder')->delete();
44
    $schema->resultset('Aqbasket')->delete();
45
    Koha::Acquisition::Booksellers->delete();
46
    $schema->resultset('Subscription')->delete();
47
    my $patron = $builder->build_object({ class => 'Koha::Patrons' });
42
    my $patron = $builder->build_object({ class => 'Koha::Patrons' });
48
43
49
    my $vendor = $builder->build_object( { class => 'Koha::Acquisition::Booksellers' } );
44
    my $vendor = $builder->build_object( { class => 'Koha::Acquisition::Booksellers' } );
Lines 67-78 subtest '->subscriptions() tests' => sub { Link Here
67
62
68
    $schema->storage->txn_begin();
63
    $schema->storage->txn_begin();
69
64
70
    # Delete existing data
71
    $schema->resultset('Aqorder')->delete();
72
    $schema->resultset('Aqbasket')->delete();
73
    Koha::Acquisition::Booksellers->delete();
74
    $schema->resultset('Subscription')->delete();
75
76
    my $vendor = $builder->build_object( { class => 'Koha::Acquisition::Booksellers' } );
65
    my $vendor = $builder->build_object( { class => 'Koha::Acquisition::Booksellers' } );
77
    is( $vendor->subscriptions->count, 0, 'Vendor has no subscriptions' );
66
    is( $vendor->subscriptions->count, 0, 'Vendor has no subscriptions' );
78
67
Lines 154-165 subtest '->contacts() tests' => sub { Link Here
154
143
155
    $schema->storage->txn_begin();
144
    $schema->storage->txn_begin();
156
145
157
    # Delete existing data
158
    $schema->resultset('Aqorder')->delete();
159
    $schema->resultset('Aqbasket')->delete();
160
    Koha::Acquisition::Booksellers->delete();
161
    $schema->resultset('Subscription')->delete();
162
163
    my $vendor = $builder->build_object( { class => 'Koha::Acquisition::Booksellers' } );
146
    my $vendor = $builder->build_object( { class => 'Koha::Acquisition::Booksellers' } );
164
147
165
    is( $vendor->contacts->count, 0, 'Vendor has no contacts' );
148
    is( $vendor->contacts->count, 0, 'Vendor has no contacts' );
166
- 

Return to bug 22349