-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.11.11, 4.1
-
MOODLE_311_STABLE, MOODLE_401_STABLE
When trying to use the "in following "activity" exists" behat step with mod_assign, activity is already defined as a key in the table node that specifies the type of activity to create.
This conflicts with the "activity" (aka academic instructions) field on mod_assign.
It is suggested (in Moodle dev chat) that this is something for the mod_assign data generator to deal with in mod/assign/tests/generator/lib.php
if (property_exists($instance, 'activityinstructions')) { |
// Behat generators use the 'activity' field so support an alternative name instead. |
$instance->activity = $instance->activityinstructions; |
unset($instance->activityinstructions); |
}
|