Bugzilla – Attachment 91309 Details for
Bug 23083
Course reserve item edit fails if one does not set all values
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23083: Add tests
Bug-23083-Add-tests.patch (text/plain), 1.55 KB, created by
Marcel de Rooy
on 2019-07-05 05:45:23 UTC
(
hide
)
Description:
Bug 23083: Add tests
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-07-05 05:45:23 UTC
Size:
1.55 KB
patch
obsolete
>From f59bec522741e019fce7802570f59d49db431974 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 19 Jun 2019 20:12:14 -0500 >Subject: [PATCH] Bug 23083: Add tests >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/CourseReserves/CourseItems.t | 14 ++++++++++++-- > 1 file changed, 12 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/CourseReserves/CourseItems.t b/t/db_dependent/CourseReserves/CourseItems.t >index 4d985f96d1..aca171571c 100644 >--- a/t/db_dependent/CourseReserves/CourseItems.t >+++ b/t/db_dependent/CourseReserves/CourseItems.t >@@ -23,7 +23,7 @@ use C4::CourseReserves qw/ModCourseItem ModCourseReserve DelCourseReserve GetCou > use C4::Context; > use Koha::Items; > >-use Test::More tests => 27; >+use Test::More tests => 28; > > BEGIN { > require_ok('C4::CourseReserves'); >@@ -148,7 +148,17 @@ ModCourseReserve( > ); > > $item = Koha::Items->find($itemnumber); >-is($item->ccode, 'DVD', 'Item ccode should be BOOK'); >+is($item->ccode, 'DVD', 'Item ccode should be DVD'); >+ >+ModCourseItem( >+ itemnumber => $itemnumber, >+ itype => 'BK', >+ ccode => 'BOOK', >+ holdingbranch => '', # LEAVE UNCHANGED >+ location => 'TH', >+); >+$item = Koha::Items->find($itemnumber); >+is($item->ccode, 'BOOK', 'Item ccode should be BOOK'); > > $course_item2 = GetCourseItem( ci_id => $ci_id2 ); > is($course_item2->{ccode}, '', 'Course item ccode should be empty'); >-- >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 23083
:
90818
|
90819
|
91134
|
91135
| 91309 |
91310