mudrd8mz / moodle-editor_marklar

Markdown friendly editor for Moodle
GNU General Public License v3.0
16 stars 2 forks source link

Tests for external API not passing in Moodle 4.2 #24

Closed juancs closed 6 months ago

juancs commented 1 year ago

Tests for external API in 4.2 are failing with the following error:

"PHP Fatal error: Uncaught coding_exception: Coding error detected, it must be fixed by a programmer: When including this file for a unit test, the test must be run in an isolated process. See the PHPUnit @runInSeparateProcess and @runTestsInSeparateProcesses annotations"

The change is documented here:

https://moodledev.io/docs/4.2/devupdate

@runInSeparateProcess should be used in order for this to work properly.

mudrd8mz commented 6 months ago

Thank you Juan for raising this and for providing the patch.