Bugzilla – Attachment 81689 Details for
Bug 20941
Displaying requests does not display request material type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20941: Add unit tests
Bug-20941-Add-unit-tests.patch (text/plain), 1.38 KB, created by
Josef Moravec
on 2018-10-31 09:53:29 UTC
(
hide
)
Description:
Bug 20941: Add unit tests
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-10-31 09:53:29 UTC
Size:
1.38 KB
patch
obsolete
>From cb3282ef59aa3818c746df4477f4f52a06da04f5 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Tue, 2 Oct 2018 15:50:51 +0100 >Subject: [PATCH] Bug 20941: Add unit tests > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > t/db_dependent/Illrequests.t | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Illrequests.t b/t/db_dependent/Illrequests.t >index 36ecc89..3f7ba1e 100644 >--- a/t/db_dependent/Illrequests.t >+++ b/t/db_dependent/Illrequests.t >@@ -37,7 +37,7 @@ use_ok('Koha::Illrequests'); > > subtest 'Basic object tests' => sub { > >- plan tests => 22; >+ plan tests => 24; > > $schema->storage->txn_begin; > >@@ -85,6 +85,19 @@ subtest 'Basic object tests' => sub { > is($illrq_obj->backend, $illrq->{backend}, > "Backend getter works."); > >+ is($illrq_obj->getType, '<span>N/A</span>', >+ 'getType() returns placeholder if no type is set'); >+ $builder->build({ >+ source => 'Illrequestattribute', >+ value => { >+ illrequest_id => $illrq_obj->illrequest_id, >+ type => 'type', >+ value => 'book' >+ } >+ }); >+ is($illrq_obj->getType, 'book', >+ 'getType() returns correct type if set'); >+ > isnt($illrq_obj->status, 'COMP', > "ILL is not currently marked complete."); > $illrq_obj->mark_completed; >-- >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 20941
:
76052
|
79577
|
79825
|
79865
|
79918
|
79919
|
79920
|
79921
|
79945
|
79999
|
80112
|
80113
|
80114
|
80115
|
80116
|
80117
|
80127
|
80128
|
80129
|
80130
|
80131
|
80132
|
80212
|
81688
| 81689 |
81690
|
81691
|
81692
|
81693
|
81694