MDL-42538 behat: Fixing wrong number of users

This commit is contained in:
David Monllao 2013-10-25 11:22:20 +08:00
parent 27ee4c13a5
commit a068887e3d

View 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');
}