-
Bug
-
Resolution: Fixed
-
Blocker
-
3.5.1, 3.6
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MOODLE_35_STABLE
-
MDL-62962-master -
admin/tool/dataprivacy/tests/api_test.php::get_data_requests_provider is creating data in a dataProvider. This is fundamentally wrong and will break things.
This is seen when calling any phpunit test which does not reset state as a database modification.
Data providers are run before phpunit starts at all. They must not, in fact can not create data because they are called prior to setUp and any test.
They must not be used to create data. They are intended to provide a set of data and expected result, not as a test setUp.