Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1f8c1b
)
MDL-38708 Changed test to be more accurate
author
Marina Glancy
<marina@moodle.com>
Thu, 4 Apr 2013 23:52:09 +0000
(10:52 +1100)
committer
Marina Glancy
<marina@moodle.com>
Thu, 4 Apr 2013 23:52:09 +0000
(10:52 +1100)
course/tests/courselib_test.php
patch
|
blob
|
blame
|
history
diff --git
a/course/tests/courselib_test.php
b/course/tests/courselib_test.php
index
9d08906
..
74db189
100644
(file)
--- a/
course/tests/courselib_test.php
+++ b/
course/tests/courselib_test.php
@@
-582,12
+582,12
@@
class courselib_testcase extends advanced_testcase {
$course->newsitems = 0;
$course->numsections = 5;
$course->category = $defaultcategory;
+ $original = (array) $course;
$created = create_course($course);
$context = context_course::instance($created->id);
// Compare original and created.
- $original = (array) $course;
$this->assertEquals($original, array_intersect_key((array) $created, $original));
// Ensure default section is created.