Bugzilla – Attachment 19078 Details for
Bug 10332
UT: CourseReserves.t needs to create its own data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10332: Data could exist in the courses table.
Bug-10332-Data-could-exist-in-the-courses-table.patch (text/plain), 1.40 KB, created by
Kyle M Hall (khall)
on 2013-06-17 15:37:46 UTC
(
hide
)
Description:
Bug 10332: Data could exist in the courses table.
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-06-17 15:37:46 UTC
Size:
1.40 KB
patch
obsolete
>From 2a83ac313dcba5aa4bcd6389fd6dd302e24abda6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 17 Jun 2013 11:16:10 +0200 >Subject: [PATCH] Bug 10332: Data could exist in the courses table. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/db_dependent/CourseReserves.t | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/CourseReserves.t b/t/db_dependent/CourseReserves.t >index a7955e4..d122005 100755 >--- a/t/db_dependent/CourseReserves.t >+++ b/t/db_dependent/CourseReserves.t >@@ -5,8 +5,7 @@ > > use Modern::Perl; > >-use Test::More tests => 20; >-use Data::Dumper; >+use Test::More tests => 21; > > BEGIN { > use_ok('C4::Biblio'); >@@ -51,7 +50,9 @@ ok( $course->{'course_name'} eq "Test Course", "GetCourse returned correct > ok( $course->{'staff_note'} eq "Test staff note 2", "ModCourse updated course succesfully" ); > > my $courses = GetCourses(); >-ok( $courses->[0]->{'course_name'} eq "Test Course", "GetCourses returns valid array of course data" ); >+is( ref($courses), 'ARRAY', "GetCourses returns an array" ); >+my @match = map {$_->{course_name} eq 'Test Course'} @$courses; >+ok( scalar(@match) > 0, "GetCourses returns valid array of course data" ); > > ModCourseInstructors( mode => 'add', course_id => $course_id, borrowernumbers => [ $borrowers[0]->{'borrowernumber'} ] ); > $course = GetCourse($course_id); >-- >1.7.2.5
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 10332
:
18382
|
18638
|
18645
|
19058
|
19059
|
19077
|
19078
|
19127
|
19128
|
19129
|
19135