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

(-)a/t/db_dependent/api/v1/biblios.t (-14 / +4 lines)
Lines 45-51 my $t = Test::Mojo->new('Koha::REST::V1'); Link Here
45
45
46
subtest 'get() tests' => sub {
46
subtest 'get() tests' => sub {
47
47
48
    plan tests => 22;
48
    plan tests => 21;
49
49
50
    $schema->storage->txn_begin;
50
    $schema->storage->txn_begin;
51
51
Lines 71-82 subtest 'get() tests' => sub { Link Here
71
71
72
    $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber
72
    $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber
73
                => { Accept => 'application/weird+format' } )
73
                => { Accept => 'application/weird+format' } )
74
      ->status_is(406)
74
      ->status_is(400);
75
      ->json_is( [ "application/json",
76
                   "application/marcxml+xml",
77
                   "application/marc-in-json",
78
                   "application/marc",
79
                   "text/plain" ] );
80
75
81
    $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber
76
    $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber
82
                 => { Accept => 'application/json' } )
77
                 => { Accept => 'application/json' } )
Lines 223-229 subtest 'delete() tests' => sub { Link Here
223
218
224
subtest 'get_public() tests' => sub {
219
subtest 'get_public() tests' => sub {
225
220
226
    plan tests => 26;
221
    plan tests => 25;
227
222
228
    $schema->storage->txn_begin;
223
    $schema->storage->txn_begin;
229
224
Lines 256-266 subtest 'get_public() tests' => sub { Link Here
256
251
257
    $t->get_ok( "//$userid:$password@/api/v1/public/biblios/" . $biblio->biblionumber
252
    $t->get_ok( "//$userid:$password@/api/v1/public/biblios/" . $biblio->biblionumber
258
                => { Accept => 'application/weird+format' } )
253
                => { Accept => 'application/weird+format' } )
259
      ->status_is(406)
254
      ->status_is(400);
260
      ->json_is( [ "application/marcxml+xml",
261
                   "application/marc-in-json",
262
                   "application/marc",
263
                   "text/plain" ] );
264
255
265
    $t->get_ok( "//$userid:$password@/api/v1/public/biblios/" . $biblio->biblionumber
256
    $t->get_ok( "//$userid:$password@/api/v1/public/biblios/" . $biblio->biblionumber
266
                 => { Accept => 'text/plain' } )
257
                 => { Accept => 'text/plain' } )
267
- 

Return to bug 30194