Skip to content
Snippets Groups Projects
Commit da59fac2 authored by Matti Harjula's avatar Matti Harjula
Browse files

Make it possible to setupr PHP-unit on a machine without Maxima using MaximaPool.

parent e9b1f478
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,8 @@ function xmldb_qtype_stack_install() {
// If this is a PHP unit test site, automatically create maxima_opt_auto.
// Should probably consider doing this for real in the future.
if ($platform != 'win' && (PHPUNIT_TEST || defined('BEHAT_UTIL'))) {
if ($platform != 'win' && (PHPUNIT_TEST || defined('BEHAT_UTIL')) &&
QTYPE_STACK_TEST_CONFIG_PLATFORM !== 'server') {
// Set to the same defaults as in settings.php - however, that has not been done
// yet in the Moodle install code flow, so we have to duplicate here.
set_config('maximaversion', 'default', 'qtype_stack');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment