Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-38708 Changed test to be more accurate

  • Loading branch information...
commit 97d5e39c49abd6119a27c2819db7bd2900f24fef 1 parent d1f8c1b
@marinaglancy marinaglancy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  course/tests/courselib_test.php
View
2  course/tests/courselib_test.php
@@ -582,12 +582,12 @@ public function test_create_course() {
$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.
Please sign in to comment.
Something went wrong with that request. Please try again.