Lines 675-681
subtest 'add() tests (maxreserves behaviour)' => sub {
Link Here
|
675 |
|
675 |
|
676 |
subtest 'pickup_locations() tests' => sub { |
676 |
subtest 'pickup_locations() tests' => sub { |
677 |
|
677 |
|
678 |
plan tests => 6; |
678 |
plan tests => 9; |
679 |
|
679 |
|
680 |
$schema->storage->txn_begin; |
680 |
$schema->storage->txn_begin; |
681 |
|
681 |
|
Lines 775-779
subtest 'pickup_locations() tests' => sub {
Link Here
|
775 |
. "/pickup_locations" ) |
775 |
. "/pickup_locations" ) |
776 |
->json_is( [ $library_1->to_api, $library_2->to_api ] ); |
776 |
->json_is( [ $library_1->to_api, $library_2->to_api ] ); |
777 |
|
777 |
|
|
|
778 |
# filtering works! |
779 |
$t->get_ok( "//$userid:$password@/api/v1/holds/" |
780 |
. $hold_2->id |
781 |
. '/pickup_locations?q={"marc_org_code": { "-like": "A%" }}' ) |
782 |
->json_is( [ $library_1->to_api ] ); |
783 |
|
784 |
|
778 |
$schema->storage->txn_rollback; |
785 |
$schema->storage->txn_rollback; |
779 |
}; |
786 |
}; |
780 |
- |
|
|