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

(-)a/t/db_dependent/api/v1/illrequests.t (-2 / +6 lines)
Lines 38-44 my $t = Test::Mojo->new('Koha::REST::V1'); Link Here
38
38
39
subtest 'list() tests' => sub {
39
subtest 'list() tests' => sub {
40
40
41
    plan tests => 30;
41
    plan tests => 33;
42
42
43
    # Mock ILLBackend (as object)
43
    # Mock ILLBackend (as object)
44
    my $backend = Test::MockObject->new;
44
    my $backend = Test::MockObject->new;
Lines 159-164 subtest 'list() tests' => sub { Link Here
159
      ->status_is(200)
159
      ->status_is(200)
160
      ->json_is( [ $response2 ] );
160
      ->json_is( [ $response2 ] );
161
161
162
    # Test status parameter
163
    $t->get_ok( "//$userid:$password@/api/v1/illrequests?status=STATUS2" )
164
      ->status_is(200)
165
      ->json_is( [ $response2 ] );
166
162
    # Test the ILLHiddenRequestStatuses syspref
167
    # Test the ILLHiddenRequestStatuses syspref
163
    t::lib::Mocks::mock_preference( 'ILLHiddenRequestStatuses', 'STATUS1' );
168
    t::lib::Mocks::mock_preference( 'ILLHiddenRequestStatuses', 'STATUS1' );
164
    $t->get_ok( "//$userid:$password@/api/v1/illrequests" )
169
    $t->get_ok( "//$userid:$password@/api/v1/illrequests" )
165
- 

Return to bug 22000