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

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

Return to bug 24908