Bugzilla – Attachment 103750 Details for
Bug 24908
Allow fetching text-formatted MARC data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24908: Unit tests
Bug-24908-Unit-tests.patch (text/plain), 1.71 KB, created by
Jonathan Druart
on 2020-04-27 11:00:08 UTC
(
hide
)
Description:
Bug 24908: Unit tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-04-27 11:00:08 UTC
Size:
1.71 KB
patch
obsolete
>From 1c6d34dc1131c62868285d902ab9cce320113610 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 19 Mar 2020 12:04:27 -0300 >Subject: [PATCH] Bug 24908: Unit tests > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/api/v1/biblios.t | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/api/v1/biblios.t b/t/db_dependent/api/v1/biblios.t >index ccc59ece66..66d423d25f 100644 >--- a/t/db_dependent/api/v1/biblios.t >+++ b/t/db_dependent/api/v1/biblios.t >@@ -38,7 +38,7 @@ my $t = Test::Mojo->new('Koha::REST::V1'); > > subtest 'get() tests' => sub { > >- plan tests => 18; >+ plan tests => 21; > > $schema->storage->txn_begin; > >@@ -68,7 +68,8 @@ subtest 'get() tests' => sub { > ->json_is( [ "application/json", > "application/marcxml+xml", > "application/marc-in-json", >- "application/marc" ] ); >+ "application/marc", >+ "text/plain" ] ); > > $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber > => { Accept => 'application/json' } ) >@@ -88,6 +89,11 @@ subtest 'get() tests' => sub { > => { Accept => 'application/marc' } ) > ->status_is(200); > >+ $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber >+ => { Accept => 'text/plain' } ) >+ ->status_is(200) >+ ->content_is($biblio->metadata->record->as_formatted); >+ > $biblio->delete; > $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber > => { Accept => 'application/marc' } ) >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24908
:
101028
|
101029
|
102158
|
102159
| 103750 |
103751