Lines 36-42
t::lib::Mocks::mock_preference( 'RESTBasicAuth', 1 );
Link Here
|
36 |
|
36 |
|
37 |
subtest 'list() tests' => sub { |
37 |
subtest 'list() tests' => sub { |
38 |
|
38 |
|
39 |
plan tests => 18; |
39 |
plan tests => 21; |
40 |
|
40 |
|
41 |
$schema->storage->txn_begin; |
41 |
$schema->storage->txn_begin; |
42 |
|
42 |
|
Lines 81-86
subtest 'list() tests' => sub {
Link Here
|
81 |
'Old holds even after item and library removed' |
81 |
'Old holds even after item and library removed' |
82 |
); |
82 |
); |
83 |
|
83 |
|
|
|
84 |
$old_hold_1->biblio->delete; |
85 |
$t->get_ok( "//$userid:$password@/api/v1/patrons/" . $patron->id . '/holds?old=1&_order_by=+me.hold_id' ) |
86 |
->status_is( 200, 'REST3.2.2' )->json_is( |
87 |
'' => [ $old_hold_1->get_from_storage->to_api, $hold_3->to_api ], |
88 |
'Old holds even after biblio removed' |
89 |
); |
90 |
|
84 |
my $non_existent_patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
91 |
my $non_existent_patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
85 |
my $non_existent_patron_id = $non_existent_patron->id; |
92 |
my $non_existent_patron_id = $non_existent_patron->id; |
86 |
|
93 |
|
87 |
- |
|
|