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

(-)a/t/db_dependent/Koha/Biblio.t (-3 / +2 lines)
Lines 507-513 subtest 'orders() and active_orders() tests' => sub { Link Here
507
    my $active_orders = $biblio->active_orders;
507
    my $active_orders = $biblio->active_orders;
508
508
509
    is( ref($orders), 'Koha::Acquisition::Orders', 'Result type is correct' );
509
    is( ref($orders), 'Koha::Acquisition::Orders', 'Result type is correct' );
510
    is( $biblio->orders->count, $biblio->active_orders->count, '->orders_count returns the count for the resultset' );
510
    is( $biblio->orders->count, $biblio->active_orders->count, '->orders->count returns the count for the resultset' );
511
511
512
    # Add a couple orders
512
    # Add a couple orders
513
    foreach (1..2) {
513
    foreach (1..2) {
Lines 537-543 subtest 'orders() and active_orders() tests' => sub { Link Here
537
537
538
    is( ref($orders), 'Koha::Acquisition::Orders', 'Result type is correct' );
538
    is( ref($orders), 'Koha::Acquisition::Orders', 'Result type is correct' );
539
    is( ref($active_orders), 'Koha::Acquisition::Orders', 'Result type is correct' );
539
    is( ref($active_orders), 'Koha::Acquisition::Orders', 'Result type is correct' );
540
    is( $orders->count, $active_orders->count + 2, '->active_orders_count returns the rigt count' );
540
    is( $orders->count, $active_orders->count + 2, '->active_orders->count returns the rigt count' );
541
541
542
    $schema->storage->txn_rollback;
542
    $schema->storage->txn_rollback;
543
};
543
};
544
- 

Return to bug 24467