Merge branch 'MDL-64283-master' of git://github.com/damyon/moodle
authorJun Pataleta <jun@moodle.com>
Thu, 6 Dec 2018 06:58:01 +0000 (14:58 +0800)
committerJun Pataleta <jun@moodle.com>
Thu, 6 Dec 2018 06:58:01 +0000 (14:58 +0800)
competency/tests/generator/lib.php

index 2fb49d6..15a4473 100644 (file)
@@ -95,8 +95,8 @@ class core_competency_generator extends component_generator_base {
      * @return competency
      */
     public function create_competency($record = null) {
-        $this->frameworkcount++;
-        $i = $this->frameworkcount;
+        $this->competencycount++;
+        $i = $this->competencycount;
         $record = (object) $record;
 
         if (!isset($record->competencyframeworkid)) {