Bugzilla – Attachment 90818 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.40 KB, created by
Jonathan Druart
on 2019-06-20 01:15:33 UTC
(
hide
)
Description:
Bug 23083: Add tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-06-20 01:15:33 UTC
Size:
1.40 KB
patch
obsolete
>From 00e16a4192660a0005da7001c25a7418d96aa7bd 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 > >--- > 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