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

(-)a/t/db_dependent/Koha/Acquisition/Orders.t (-5 / +2 lines)
Lines 121-127 subtest 'filter_by_active() tests' => sub { Link Here
121
121
122
subtest 'filter_by_id_including_transfers() tests' => sub {
122
subtest 'filter_by_id_including_transfers() tests' => sub {
123
123
124
    plan tests => 6;
124
    plan tests => 4;
125
125
126
    $schema->storage->txn_begin;
126
    $schema->storage->txn_begin;
127
127
Lines 149-157 subtest 'filter_by_id_including_transfers() tests' => sub { Link Here
149
149
150
    $orders_rs = $orders_rs->filter_by_id_including_transfers({ ordernumber => $order_1->ordernumber });
150
    $orders_rs = $orders_rs->filter_by_id_including_transfers({ ordernumber => $order_1->ordernumber });
151
151
152
    is( $orders_rs->count, 2, 'The two referenced orders are returned' );
152
    is_deeply( [ sort $orders_rs->get_column('ordernumber') ], [$order_1->ordernumber, $order_2->ordernumber ], 'The 2 orders are returned' );
153
    is( $orders_rs->next->ordernumber, $order_1->ordernumber, 'The right order is returned' );
154
    is( $orders_rs->next->ordernumber, $order_2->ordernumber, 'The right order is returned' );
155
153
156
    $orders_rs = $orders_rs->filter_by_id_including_transfers({ ordernumber => $order_2->ordernumber });
154
    $orders_rs = $orders_rs->filter_by_id_including_transfers({ ordernumber => $order_2->ordernumber });
157
155
158
- 

Return to bug 25670