MDL-51371 course: fix core_course_get_course_module assertion
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 23 Sep 2015 17:53:45 +0000 (19:53 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 24 Sep 2015 13:38:18 +0000 (15:38 +0200)
A recent bugfix before integration left this failing. They are 22.

course/tests/externallib_test.php

index 56bf16b..875d882 100644 (file)
@@ -1550,7 +1550,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
 
         $this->assertCount(0, $result['warnings']);
         // Test we retrieve all the fields.
-        $this->assertCount(21, $result['cm']);
+        $this->assertCount(22, $result['cm']);
         $this->assertEquals($record['name'], $result['cm']['name']);
         $this->assertEquals($options['idnumber'], $result['cm']['idnumber']);