6 Commits

Author SHA1 Message Date
Neill Magill
8072628a67 MDL-48177 core: Plugin environment checks with no version of Moodle
The environment.xml files in plugins force you to define the versions of Moodle that the checks should be carried out against.
For community plugins the environment requirements of the plugin seem unlikely to be dependant on the version of Moodle.

This patch will allow the environment.xml files to use a new <PLUGIN> tag in place of the <MOODLE version="> tag.

This solution has the following properties:

* The Environment file will not break versions of Moodle that do not support the PLUGIN syntax.
* Specific versioned MOODLE tags can still be defined for versions of Moodle that do not have this patch.
* If both MOODLE and PLUGIN tags exist the PLUGIN tag will be used in preference.
* The PLUGIN tag will not function in the main Moodle environment.xml file.
* The PLUGIN tag has a mandatory name attribute that must match the frankenstyle name of the plugin being tested.
2015-01-27 13:08:47 +01:00
Petr Škoda
3130c1a71f MDL-40952 skip only the opcache requirement in environment test
Please note we need other optional extensions and settings because otherwise some tests fail without explanation.
2013-08-08 09:02:40 +02:00
Sam Hemelryk
b05cfa0e67 MDL-39430 phpunit: skip unmet optional environment checks 2013-07-31 10:46:44 +12:00
Petr Škoda
5b0d1b815f MDL-39915 cleanup core_environment_testcase 2013-07-27 18:01:17 +02:00
Eloy Lafuente (stronk7)
d13d3f2d31 MDL-39465 Show env. info instead of part twice. 2013-06-04 00:50:15 +02:00
Petr Škoda
7dc1feaa99 MDL-39465 detect environment problems in tests
This should help explain why something else fails.
2013-05-31 22:02:34 +02:00