-
Improvement
-
Resolution: Fixed
-
Minor
-
3.9.13, 3.9.15, 3.10.10, 3.11.6, 3.11.8, 4.0, 4.0.2
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
-
Consider this Behat scenario in a plugin: https://github.com/marcusgreen/moodle-qtype_wordselect/blob/6183f72a45f9ad1d38742d4caed2c5e1d7d51883/tests/behat/filter_test.feature
if you don't have filter_mlang2 installed, then it fails.
It needs a step like
Given the filter_mlang2 plugin is installed
so that the test is skipped if it is not relevant. And, this is clearly a generic step, so should be done in core. (Note, we already have 'Given database family used is one of the following:' in lib/tests/behat/behat_general.php.)