Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.4
-
MOODLE_30_STABLE
-
MOODLE_31_STABLE, MOODLE_32_STABLE
-
MDL-56233-32-mocksubmit -
-
Easy
-
Description
In formslib.php , the function moodleform::mock_submit() uses a $formidentifier that can be auto-detected.
If the plugin is using namespaces instead of frankenstyle class name, get_called_class() will return 'type\name' instead of 'type_name'. The mocking does not work properly when it auto-detects the name.
Please check my proposed solution branch for a unit test isolating the issue.