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

(-)a/t/db_dependent/api/v1/biblios.t (-3 / +8 lines)
Lines 38-44 my $t = Test::Mojo->new('Koha::REST::V1'); Link Here
38
38
39
subtest 'get() tests' => sub {
39
subtest 'get() tests' => sub {
40
40
41
    plan tests => 18;
41
    plan tests => 21;
42
42
43
    $schema->storage->txn_begin;
43
    $schema->storage->txn_begin;
44
44
Lines 68-74 subtest 'get() tests' => sub { Link Here
68
      ->json_is( [ "application/json",
68
      ->json_is( [ "application/json",
69
                   "application/marcxml+xml",
69
                   "application/marcxml+xml",
70
                   "application/marc-in-json",
70
                   "application/marc-in-json",
71
                   "application/marc" ] );
71
                   "application/marc",
72
                   "text/plain" ] );
72
73
73
    $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber
74
    $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber
74
                 => { Accept => 'application/json' } )
75
                 => { Accept => 'application/json' } )
Lines 88-93 subtest 'get() tests' => sub { Link Here
88
                 => { Accept => 'application/marc' } )
89
                 => { Accept => 'application/marc' } )
89
      ->status_is(200);
90
      ->status_is(200);
90
91
92
    $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber
93
                 => { Accept => 'text/plain' } )
94
      ->status_is(200)
95
      ->content_is($biblio->metadata->record->as_formatted);
96
91
    $biblio->delete;
97
    $biblio->delete;
92
    $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber
98
    $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber
93
                 => { Accept => 'application/marc' } )
99
                 => { Accept => 'application/marc' } )
94
- 

Return to bug 24908