Lines 37-44
is(
Link Here
|
37 |
# patron_choosers and patron_deliverers Tests |
37 |
# patron_choosers and patron_deliverers Tests |
38 |
|
38 |
|
39 |
# Current Patron Chooser / Deliverer count |
39 |
# Current Patron Chooser / Deliverer count |
40 |
my $orig_del_count = Koha::Patrons->housebound_deliverers->count; |
40 |
my $orig_del_count = Koha::Patrons->search_housebound_deliverers->count; |
41 |
my $orig_cho_count = Koha::Patrons->housebound_choosers->count; |
41 |
my $orig_cho_count = Koha::Patrons->search_housebound_choosers->count; |
42 |
|
42 |
|
43 |
# We add one, just in case the above is 0, so we're guaranteed one of each. |
43 |
# We add one, just in case the above is 0, so we're guaranteed one of each. |
44 |
my $patron_chooser = $builder->build({ source => 'Borrower' }); |
44 |
my $patron_chooser = $builder->build({ source => 'Borrower' }); |
Lines 63-74
$builder->build({
Link Here
|
63 |
}, |
63 |
}, |
64 |
}); |
64 |
}); |
65 |
|
65 |
|
66 |
# Test housebound_choosers |
66 |
# Test search_housebound_choosers |
67 |
is(Koha::Patrons->housebound_choosers->count, $orig_cho_count + 1, "Correct count of choosers."); |
67 |
is(Koha::Patrons->search_housebound_choosers->count, $orig_cho_count + 1, "Correct count of choosers."); |
68 |
is(Koha::Patrons->housebound_deliverers->count, $orig_del_count + 1, "Correct count of deliverers"); |
68 |
is(Koha::Patrons->search_housebound_deliverers->count, $orig_del_count + 1, "Correct count of deliverers"); |
69 |
|
69 |
|
70 |
isa_ok(Koha::Patrons->housebound_choosers->next, "Koha::Patron"); |
70 |
isa_ok(Koha::Patrons->search_housebound_choosers->next, "Koha::Patron"); |
71 |
isa_ok(Koha::Patrons->housebound_deliverers->next, "Koha::Patron"); |
71 |
isa_ok(Koha::Patrons->search_housebound_deliverers->next, "Koha::Patron"); |
72 |
|
72 |
|
73 |
$schema->storage->txn_rollback; |
73 |
$schema->storage->txn_rollback; |
74 |
|
74 |
|
75 |
- |
|
|