Commit Graph

125 Commits

Author SHA1 Message Date
Tomo Tsuyuki
a262467d58 Replace admin_write_settings to set_config 2021-05-11 16:29:55 +10:00
Dan Marsden
802acbd26c PHPunit 9 fixes. 2021-05-05 14:09:09 +12:00
Gus Auwerda
9c2b529831 auth_outage: Use assertStringNotContainsString() for PHPUnit 9 compliance 2021-05-05 13:54:26 +12:00
Gus Auwerda
e1d7d2d3f4 auth_outage: Update function calls to conform to PHPUnit 9 deprecations 2021-05-05 13:53:50 +12:00
Matt Porritt
47154e545f fix unit test signature to be compatible with Moodle 3.10+ 2021-03-12 03:31:06 +00:00
Matt Porritt
2d59580d36 fix unit test signature to be compatible with Moodle 3.10+ 2021-03-12 03:29:55 +00:00
Tomo Tsuyuki
a6bb7f4bc2 Fix #241 Do not render if layout are from some specific ones 2021-03-04 12:22:34 +11:00
John Yao
116467429e Fix issues for phpdoc check
Get rid of ci for moodle 37,38
2021-02-16 11:12:40 +11:00
Peter Burnett
e58f7b73b3 Fixed logic for sequenced calls of outage injection to centralised method 2021-02-05 13:42:05 +10:00
Peter Burnett
7cd10ab05c Updated DOM element matching to allow for "//" urls in images 2021-01-19 08:57:16 +10:00
Jamie Stamp
e4dc17aae4 Remove all usage of $CFG->additionalhtmltopofbody #211 2020-11-04 17:15:05 +00:00
Nicholas Hoobin
2b249ac036 WR #343135: Update tests to work with T12.
For some reason, $this->resetAfterTest(true); is not resetting the outage table in T12 (probably T11/13 too)
2020-09-11 15:48:04 +10:00
Mikhail Golenkov
bf242d9e65 Set CFG->svgicons to true on info page #194. 2020-04-08 16:49:47 +10:00
Peter Burnett
73f283847a Changed require statement to check file exists 2020-03-26 12:04:00 +10:00
Peter Burnett
777e466a0a Issue #189: Updated unit tests 2020-03-25 15:15:02 +10:00
Mikhail Golenkov
2cecb87317 Format test_get_urls_from_stylesheet_provider() #179. 2020-02-10 14:28:48 +11:00
Mikhail Golenkov
b6f5db001a Fix unit tests to support older versions of phpunit #179. 2020-02-10 12:53:52 +11:00
Mikhail Golenkov
aadd7eaeee Cover get_urls_from_stylesheet() method by unit tests #179. 2020-02-10 12:17:05 +11:00
Mikhail Golenkov
26baaf9993 Fix unit tests #179. 2020-02-07 15:41:52 +11:00
Dan Marsden
f60244f62c Fix resetAfterTest(false) in events_test file for Totara tests. 2019-07-19 10:09:26 +12:00
Dan Marsden
02524a4028 Fix #161 - make unit tests distinct. 2019-07-18 09:20:35 +12:00
Michael Palimaka
a56c67284f Fix tests 2019-06-18 14:33:03 +10:00
Kristian Ringer
36cd0517b9 Issue #153: Fix test_inject_broken unit test failure 2019-05-22 12:30:11 +10:00
Brendan Heywood
dec4c7bf53 Fixed ipwhitelist escaping issue #150 2019-03-28 14:32:20 +11:00
Dan Marsden
3639883d30 Don't use curl when running behat tests to get page outage.
Behat step improvements.
2018-10-05 13:45:08 +13:00
Dan Marsden
6c69d46ebe Fix some behat steps. 2018-10-05 11:49:59 +13:00
Dan Marsden
c175333f88 Remove incorrect usage of example.com in tests.
remove http part of test - site might be https.
2018-10-03 22:55:09 +13:00
Dan Marsden
3e5446d8d1 tidy up coding guideline travis failures. 2018-10-03 22:10:39 +13:00
Dan Marsden
a33e80b4aa Coding guidelines - tidy up some spacing in behat tests. 2018-10-03 15:46:11 +13:00
Dan Marsden
20df09d3e9 Revert "Temporarly disabling one scenario test, see Issue #68."
This reverts commit 42fec9e752.
2018-10-03 15:28:03 +13:00
Dan Marsden
ff59dac023 Revert "Travis is freezing with a few behat tests which creates outages. It works fine locally both manually and with selenium. Ignoring tests and opening issue #77 to deal with it later as the code works fine."
This reverts commit fc2349f312.
2018-10-03 15:27:21 +13:00
Dan Marsden
07e26e312c Convert deprecated pix_url calls. 2018-10-03 15:10:59 +13:00
Daniel Thee Roperto
8036147931 Issue #129 - Stop maintenance after stoptime. 2018-04-26 16:00:11 +10:00
Daniel Thee Roperto
249f7cb78b Making it compatible with Moodle 32+. 2017-09-06 13:35:58 +10:00
Daniel Thee Roperto
95cec83970 Fixed code style. 2017-05-19 09:41:57 +10:00
Daniel Thee Roperto
0b17efedba Issue #104 - Allowed symlinks in dataroot, added unit tests. 2017-02-20 13:59:24 +11:00
Daniel Thee Roperto
0380c6ebec Outage now honours ABORT_AFTER_CONFIG CLI_SCRIPT AJAX_SCRIPT and WS_SERVER 2016-12-21 14:38:31 +11:00
Daniel Thee Roperto
0ad53cde87 Added warning to manage outages page if host is not configured (inaccessible wwwroot). 2016-12-16 16:07:29 +11:00
Daniel Thee Roperto
6efbb0c2c7 Refactored tests. 2016-12-16 10:23:52 +11:00
Daniel Thee Roperto
38b1b5fe72 Issue #85 - Only remove additionalhtml if in the appropriate settings section. 2016-12-14 11:25:44 +11:00
Daniel Thee Roperto
7946dccd5e Issue #88 - Injection should be prevented in settings even if symlinks are used. 2016-12-14 11:20:58 +11:00
Daniel Thee Roperto
32f48a2133 Issue #82 - Recreate templates when settings (allowed ips or blocks removed) is updated. 2016-12-05 11:48:13 +11:00
Daniel Thee Roperto
2f0d54c943 Fixed failing tests on Moodle before 30 (related to MDL-56250). 2016-11-18 10:03:19 +11:00
Daniel Thee Roperto
fc2349f312 Travis is freezing with a few behat tests which creates outages. It works fine locally both manually and with selenium. Ignoring tests and opening issue #77 to deal with it later as the code works fine. 2016-11-15 12:25:04 +11:00
Daniel Thee Roperto
7f264a85da Code cleanup to meet code standards. 2016-11-14 19:20:46 +11:00
Daniel Thee Roperto
5961e82b85 Issue #22 - Self-refresh maintenance page every 5 minutes or the outage duration, whatever is lower. 2016-11-14 15:43:57 +11:00
Daniel Thee Roperto
3360d357d4 Added warnings in case plugin is not properly configured. 2016-11-14 15:02:30 +11:00
Daniel Thee Roperto
27c7558e57 Issue #22 - Added setting and implemented removing elements by basic CSS selector (only simple .class and #id can be used as of now). 2016-11-14 11:35:08 +11:00
Daniel Thee Roperto
0c97b4be01 Applying moodle coding standards. 2016-11-10 19:29:43 +11:00
Daniel Thee Roperto
33be3eef86 Refactored maintenance_static_page.php due to high complexity (more than 50). 2016-11-10 19:06:18 +11:00