Bugzilla – Attachment 120132 Details for
Bug 14237
Allow bibs to be added to course without items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14237: Tests
Bug-14237-Tests.patch (text/plain), 1.89 KB, created by
Kyle M Hall (khall)
on 2021-04-23 17:48:10 UTC
(
hide
)
Description:
Bug 14237: Tests
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-04-23 17:48:10 UTC
Size:
1.89 KB
patch
obsolete
>From 3882976e92b1d2e92489e22bcd204f13305f3464 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Mon, 15 Mar 2021 09:15:32 +1300 >Subject: [PATCH] Bug 14237: Tests > >Confirm all tests pass: t/db_dependent/CourseReserves/CourseItems.t > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/db_dependent/CourseReserves/CourseItems.t | 30 ++++++++++++++++++++- > 1 file changed, 29 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/CourseReserves/CourseItems.t b/t/db_dependent/CourseReserves/CourseItems.t >index 6cf0fcdbc9..f5224143e1 100755 >--- 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 => 35; >+use Test::More tests => 36; > > BEGIN { > require_ok('C4::CourseReserves'); >@@ -406,7 +406,35 @@ subtest 'Ensure item info is preserved' => sub { > > }; > >+subtest 'biblio added to course without items' => sub { >+ plan tests => 1; > >+ my $course = $builder->build({ >+ source => 'Course', >+ value => { >+ enabled => 'no', >+ } >+ }); >+ #Add course item but change nothing >+ my $course_item_id = ModCourseItem( >+ itemnumber => undef, >+ biblionumber => $biblionumber, >+ itype => '', >+ ccode => '', >+ holdingbranch => '', >+ location => '', >+ ); >+ #Add course reserve >+ my $course_reserve_id = ModCourseReserve( >+ course_id => $course->{course_id}, >+ ci_id => $course_item_id, >+ staff_note => 'staff note', >+ public_note => '', >+ ); >+ >+ my $course_item = GetCourseItem({ ci_id => $course_item_id }); >+ is( $course_item->{itemnumber}, undef, "Course reserve with no item correctly added" ); >+}; > > > >-- >2.24.3 (Apple Git-128)
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 14237
:
116236
|
116237
|
116238
|
116239
|
116240
|
116535
|
116619
|
116638
|
116652
|
116653
|
116654
|
118220
|
118221
|
118222
|
118223
|
120128
|
120129
|
120130
|
120131
|
120132
|
120652
|
120659
|
121876
|
121877
|
121878
|
121879
|
121880
|
121881