Bugzilla – Attachment 86100 Details for
Bug 21063
Allow columns in intranet ILL request datatable to be customisable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21063: Add more tests
Bug-21063-Add-more-tests.patch (text/plain), 1.46 KB, created by
Josef Moravec
on 2019-03-05 16:59:33 UTC
(
hide
)
Description:
Bug 21063: Add more tests
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-03-05 16:59:33 UTC
Size:
1.46 KB
patch
obsolete
>From 22cdeb7b28dc392eb1b2a569ea2a01aea97f13c8 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Fri, 1 Mar 2019 08:40:52 +0000 >Subject: [PATCH] Bug 21063: Add more tests > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > t/db_dependent/api/v1/illrequests.t | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/api/v1/illrequests.t b/t/db_dependent/api/v1/illrequests.t >index 59a6bc5..d849be9 100644 >--- a/t/db_dependent/api/v1/illrequests.t >+++ b/t/db_dependent/api/v1/illrequests.t >@@ -40,7 +40,7 @@ my $t = Test::Mojo->new('Koha::REST::V1'); > > subtest 'list() tests' => sub { > >- plan tests => 18; >+ plan tests => 20; > > # Mock ILLBackend (as object) > my $backend = Test::MockObject->new; >@@ -114,9 +114,11 @@ subtest 'list() tests' => sub { > $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/capabilities', 'capabilities embedded' ) > ->json_has( '/0/library', 'library embedded' ) >- ->json_has( '/0/metadata', 'metadata embedded' ); >+ ->json_has( '/0/metadata', 'metadata embedded' ) >+ ->json_hasnt( '/1', 'Only one request was created' ); > > # Create another ILL request > my $illrequest2 = $builder->build_object( >-- >2.1.4
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 21063
:
76940
|
76941
|
76942
|
76943
|
79559
|
79560
|
80690
|
80691
|
80802
|
80841
|
82153
|
82154
|
82155
|
82156
|
82504
|
82505
|
82506
|
82507
|
84405
|
84786
|
84787
|
84788
|
84789
|
84790
|
84862
|
85854
|
85855
|
85869
|
85889
|
85893
|
85894
|
85895
|
85896
|
86060
|
86092
|
86093
|
86094
|
86095
|
86096
|
86097
|
86098
|
86099
| 86100 |
86101
|
86102
|
86103
|
86104
|
86105
|
86106
|
86235