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

(-)a/t/db_dependent/HoldsQueue.t (-2 / +4 lines)
Lines 1353-1359 subtest 'Trivial test for UpdateTransportCostMatrix' => sub { Link Here
1353
};
1353
};
1354
1354
1355
subtest 'Excludes from local holds priority' => sub {
1355
subtest 'Excludes from local holds priority' => sub {
1356
    plan tests => 5;
1356
    plan tests => 8;
1357
1357
1358
    Koha::Holds->delete;
1358
    Koha::Holds->delete;
1359
1359
Lines 1433-1438 subtest 'Excludes from local holds priority' => sub { Link Here
1433
1433
1434
    my $queue_rs = $schema->resultset('TmpHoldsqueue');
1434
    my $queue_rs = $schema->resultset('TmpHoldsqueue');
1435
    my $next = $queue_rs->next;
1435
    my $next = $queue_rs->next;
1436
    is($queue_rs->count, 1, 'Only 1 patron queueud' );
1436
    is($next->borrowernumber, $local_patron_not_excluded->borrowernumber, 'Not excluded local patron is queued');
1437
    is($next->borrowernumber, $local_patron_not_excluded->borrowernumber, 'Not excluded local patron is queued');
1437
1438
1438
    my $item2  = $builder->build_sample_item(
1439
    my $item2  = $builder->build_sample_item(
Lines 1445-1450 subtest 'Excludes from local holds priority' => sub { Link Here
1445
    C4::HoldsQueue::CreateQueue();
1446
    C4::HoldsQueue::CreateQueue();
1446
1447
1447
    $queue_rs = $schema->resultset('TmpHoldsqueue');
1448
    $queue_rs = $schema->resultset('TmpHoldsqueue');
1449
    is( $queue_rs->count, 2, '2 patrons queued' );
1448
    $next = $queue_rs->next;
1450
    $next = $queue_rs->next;
1449
    is($next->borrowernumber, $local_patron_not_excluded->borrowernumber, 'Not excluded local patron is queued');
1451
    is($next->borrowernumber, $local_patron_not_excluded->borrowernumber, 'Not excluded local patron is queued');
1450
    $next = $queue_rs->next;
1452
    $next = $queue_rs->next;
Lines 1455-1460 subtest 'Excludes from local holds priority' => sub { Link Here
1455
    C4::HoldsQueue::CreateQueue();
1457
    C4::HoldsQueue::CreateQueue();
1456
1458
1457
    $queue_rs = $schema->resultset('TmpHoldsqueue');
1459
    $queue_rs = $schema->resultset('TmpHoldsqueue');
1460
    is( $queue_rs->count, 2, '2 patrons queued' );
1458
    $next = $queue_rs->next;
1461
    $next = $queue_rs->next;
1459
    is($next->borrowernumber, $other_patron->borrowernumber, 'Other patron is queued');
1462
    is($next->borrowernumber, $other_patron->borrowernumber, 'Other patron is queued');
1460
    $next = $queue_rs->next;
1463
    $next = $queue_rs->next;
1461
- 

Return to bug 19889