mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-42538 behat: Fixing wrong number of users
This commit is contained in:
parent
27ee4c13a5
commit
a068887e3d
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user