MDL-42538 behat: Fixing wrong number of users
authorDavid Monllao <davidm@moodle.com>
Fri, 25 Oct 2013 03:22:20 +0000 (11:22 +0800)
committerDavid Monllao <davidm@moodle.com>
Fri, 25 Oct 2013 03:22:34 +0000 (11:22 +0800)
admin/tool/generator/classes/testplan_backend.php

index 7499500..2e43b4c 100644 (file)
@@ -317,7 +317,7 @@ class tool_generator_testplan_backend extends tool_generator_backend {
 
         // Checks that the selected course has enough users.
         $coursesizes = tool_generator_course_backend::get_users_per_size();
-        if (count($users) < $coursesizes[$size]) {
+        if (count($users) < self::$users[$size]) {
             $errors['size'] = get_string('notenoughusers', 'tool_generator');
         }