Bugzilla – Attachment 19128 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.45 KB, created by
Galen Charlton
on 2013-06-18 15:43:43 UTC
(
hide
)
Description:
Bug 10332: Data could exist in the courses table.
Filename:
MIME Type:
Creator:
Galen Charlton
Created:
2013-06-18 15:43:43 UTC
Size:
1.45 KB
patch
obsolete
>From 277909dd4d0d58daa4261aa18480c4c1c0e544e1 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> >Signed-off-by: Galen Charlton <gmc@esilibrary.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