$schema->storage->txn_begin();
- # Delete existing data
- $schema->resultset('Aqorder')->delete();
- $schema->resultset('Aqbasket')->delete();
- Koha::Acquisition::Booksellers->delete();
- $schema->resultset('Subscription')->delete();
my $patron = $builder->build_object({ class => 'Koha::Patrons' });
my $vendor = $builder->build_object( { class => 'Koha::Acquisition::Booksellers' } );
$schema->storage->txn_begin();
- # Delete existing data
- $schema->resultset('Aqorder')->delete();
- $schema->resultset('Aqbasket')->delete();
- Koha::Acquisition::Booksellers->delete();
- $schema->resultset('Subscription')->delete();
-
my $vendor = $builder->build_object( { class => 'Koha::Acquisition::Booksellers' } );
is( $vendor->subscriptions->count, 0, 'Vendor has no subscriptions' );
$schema->storage->txn_begin();
- # Delete existing data
- $schema->resultset('Aqorder')->delete();
- $schema->resultset('Aqbasket')->delete();
- Koha::Acquisition::Booksellers->delete();
- $schema->resultset('Subscription')->delete();
-
my $vendor = $builder->build_object( { class => 'Koha::Acquisition::Booksellers' } );
is( $vendor->contacts->count, 0, 'Vendor has no contacts' );