Bugzilla – Attachment 86376 Details for
Bug 20563
ILL request list gives no indication of source and/or target
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20563: (follow-up) Add unit test
Bug-20563-follow-up-Add-unit-test.patch (text/plain), 1.49 KB, created by
Andrew Isherwood
on 2019-03-08 11:43:41 UTC
(
hide
)
Description:
Bug 20563: (follow-up) Add unit test
Filename:
MIME Type:
Creator:
Andrew Isherwood
Created:
2019-03-08 11:43:41 UTC
Size:
1.49 KB
patch
obsolete
>From 04e42af20a74c065ad5fcb1abdcedef4f2a0cf29 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Fri, 9 Nov 2018 12:23:32 +0000 >Subject: [PATCH] Bug 20563: (follow-up) Add unit test > >Test that requested partners are returned in API response when requested >--- > t/db_dependent/api/v1/illrequests.t | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/illrequests.t b/t/db_dependent/api/v1/illrequests.t >index bd4439de48..bc990eecf4 100644 >--- a/t/db_dependent/api/v1/illrequests.t >+++ b/t/db_dependent/api/v1/illrequests.t >@@ -109,12 +109,13 @@ subtest 'list() tests' => sub { > > # One illrequest created, returned with augmented data > $tx = $t->ua->build_tx( GET => >- '/api/v1/illrequests?embed=patron,library,capabilities,metadata' ); >+ '/api/v1/illrequests?embed=patron,library,capabilities,metadata,requested_partners' ); > $tx->req->cookies( { name => 'CGISESSID', value => $session_id } ); > $tx->req->env( { REMOTE_ADDR => $remote_address } ); > $t->request_ok($tx)->status_is(200) > ->json_has( '/0/patron', 'patron embedded' ) > ->json_is( '/0/patron/patron_id', $patron->borrowernumber, 'The right patron is embeded') >+ ->json_has( '/0/requested_partners', 'requested_partners embedded' ) > ->json_has( '/0/capabilities', 'capabilities embedded' ) > ->json_has( '/0/library', 'library embedded' ) > ->json_has( '/0/metadata', 'metadata embedded' ) >-- >2.11.0
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 20563
:
74152
|
74153
|
75657
|
79523
|
79715
|
79716
|
80603
|
82166
|
82167
|
82511
|
82512
|
82734
|
84695
|
84696
|
84697
|
84698
|
86376
|
86377
|
86378
|
86427
|
86428
|
86429
|
86430
|
86431