summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0f83de1)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
use C4::Context;
use Koha::Items;
use C4::Context;
use Koha::Items;
-use Test::More tests => 27;
+use Test::More tests => 28;
BEGIN {
require_ok('C4::CourseReserves');
BEGIN {
require_ok('C4::CourseReserves');
);
$item = Koha::Items->find($itemnumber);
);
$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');
$course_item2 = GetCourseItem( ci_id => $ci_id2 );
is($course_item2->{ccode}, '', 'Course item ccode should be empty');