Bug 24467: (QA follow-up) Clarify tests wording for ->count methods
authorJosef Moravec <josef.moravec@gmail.com>
Fri, 31 Jan 2020 09:47:54 +0000 (09:47 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 31 Jan 2020 13:51:02 +0000 (13:51 +0000)
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

t/db_dependent/Koha/Biblio.t

index 7592193..2abacff 100644 (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;
 };