Bug 24467: (QA follow-up) Clarify tests wording for ->count methods

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Josef Moravec 2020-01-31 09:47:54 +00:00 committed by Martin Renvoize
parent 46bc93b4da
commit 0ead9c0163
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 2 additions and 2 deletions

View File

@ -507,7 +507,7 @@ subtest 'orders() and active_orders() tests' => sub {
my $active_orders = $biblio->active_orders;
is( ref($orders), 'Koha::Acquisition::Orders', 'Result type is correct' );
is( $biblio->orders->count, $biblio->active_orders->count, '->orders_count returns the count for the resultset' );
is( $biblio->orders->count, $biblio->active_orders->count, '->orders->count returns the count for the resultset' );
# Add a couple orders
foreach (1..2) {
@ -537,7 +537,7 @@ subtest 'orders() and active_orders() tests' => sub {
is( ref($orders), 'Koha::Acquisition::Orders', 'Result type is correct' );
is( ref($active_orders), 'Koha::Acquisition::Orders', 'Result type is correct' );
is( $orders->count, $active_orders->count + 2, '->active_orders_count returns the rigt count' );
is( $orders->count, $active_orders->count + 2, '->active_orders->count returns the rigt count' );
$schema->storage->txn_rollback;
};