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

(-)a/t/db_dependent/api/v1/pagination.t (-2 / +8 lines)
Lines 34-40 t::lib::Mocks::mock_preference( 'RESTBasicAuth', 1 ); Link Here
34
34
35
subtest 'list() pagination tests' => sub {
35
subtest 'list() pagination tests' => sub {
36
36
37
    plan tests => 66;
37
    plan tests => 69;
38
38
39
    $schema->storage->txn_begin;
39
    $schema->storage->txn_begin;
40
40
Lines 186-190 subtest 'list() pagination tests' => sub { Link Here
186
186
187
    is( scalar @{$cities}, 10, '10 cities retrieved, -1 means all' );
187
    is( scalar @{$cities}, 10, '10 cities retrieved, -1 means all' );
188
188
189
    $t->get_ok("//$userid:$password@/api/v1/cities?_per_page=0")->status_is(400)->json_is(
190
        '/0' => {
191
            message => 'Invalid value: 0',
192
            path    => '/query/_per_page'
193
        }
194
    );
195
189
    $schema->storage->txn_rollback;
196
    $schema->storage->txn_rollback;
190
};
197
};
191
- 

Return to bug 35129