14 Commits

Author SHA1 Message Date
Mathew May
e00f1c663c MDL-64506 phpunit: Update unit tests to use classic 2019-04-03 19:34:20 +08:00
Jake Dallimore
dbf66238b7 MDL-59595 admin: unit test covering the adminroot cache reset scenario
The adminroot cache should be reset when the current user is changed,
which can occur during cron or during unit tests.
2018-07-24 08:25:30 +08:00
Marina Glancy
bd39ef2422 MDL-60335 admin: fix encoding of nonlatin site names in blocked hosts 2017-10-17 12:44:13 +08:00
Damyon Wiese
f28c0c7245 MDL-59206 event: Add an event for a config_log
This is useful because config_logs are sent via logstores, and we may be interested to know how
many people change a particular admin setting across many sites (aggregated data).
2017-08-01 13:18:55 +08:00
Marina Glancy
6e861be6b7 MDL-59409 admin: set admin user in unittest 2017-07-04 11:04:54 +08:00
Damyon Wiese
e56b58e3c9 MDL-56006 theme: Set Boost as the default theme
Units tests have been adjusted e.g. 'boost' instead of 'clean' in pix urls.

Some places I didn't update the test to reflect the boost markup and reset
the theme to clean. This is because the test was not testing the markup - but the
functionality (e.g. looking for specific structures to indicate an error in a form element).
2016-10-25 10:15:20 +08:00
Damyon Wiese
890c260307 MDL-55071 phpunit: Fix failing tests due to changes in default output
Part of MDL-55071
2016-09-23 10:57:13 +01:00
Petr Skoda
5aaac8b2d6 MDL-40949 admin: Fix $CFG->preventexecpath hints
This setting restricts all local paths, not just
executables.
2014-10-29 10:45:44 +13:00
Petr Skoda
41186f4f80 MDL-41593 admin: use default setting if preventexecpath active
This resolves problems when installing Moodle
and addons when preventexecpath active.

Please note the admin_setting_configfile is still
incorrectly restricted - this will be resolved by
MDL-40949.
2014-10-07 11:30:08 +13:00
Eloy Lafuente (stronk7)
f500ff4e52 MDL-45221 Allow unit tests to pass under any OS
This commit gets rid of the old lib/tests/other/executable.php
file completely because it was only executable under unix OSs
and moves the check to be performed against some mimetex binaries
that are known to be executable and bundled with every installation.

Note this was discovered because the weekly rolling process changed
the execution permissions of the "fixture" file and, at the end
we decided to get rid of it completely, folowing the plan above.
2014-04-29 19:22:54 +02:00
Andrew Nicols
9cd7bb3764 MDL-45221 admin: configexecutable admin settings should only accept files 2014-04-28 12:21:21 +08:00
Petr Škoda
914499a340 MDL-36721 do not store passwords in config logs 2013-12-27 11:17:45 +08:00
Petr Škoda
05fb92e9dd MDL-39915 cleanup core_admintree_testcase 2013-07-27 11:11:09 +02:00
David Mudrák
77043fd6f6 MDL-38497 Add unit tests for the admin tree behaviour 2013-03-15 00:53:14 +01:00