Bug 21912: (QA follow-up) Do not delete existing patrons
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
7669697732
commit
8e6c789255
1 changed files with 2 additions and 2 deletions
|
@ -261,7 +261,7 @@ subtest '->search() tests' => sub {
|
|||
|
||||
$schema->storage->txn_begin;
|
||||
|
||||
Koha::Patrons->delete;
|
||||
my $count = Koha::Patrons->search->count;
|
||||
|
||||
# Create 10 patrons
|
||||
foreach (1..10) {
|
||||
|
@ -271,7 +271,7 @@ subtest '->search() tests' => sub {
|
|||
my $patrons = Koha::Patrons->search();
|
||||
is( ref($patrons), 'Koha::Patrons', 'search in scalar context returns the Koha::Object-based type' );
|
||||
my @patrons = Koha::Patrons->search();
|
||||
is( scalar @patrons, 10, 'search in list context returns a list of objects' );
|
||||
is( scalar @patrons, $count + 10, 'search in list context returns a list of objects' );
|
||||
my $i = 0;
|
||||
foreach (1..10) {
|
||||
is( ref($patrons[$i]), 'Koha::Patron', 'Objects in the list have the singular type' );
|
||||
|
|
Loading…
Reference in a new issue