Brendan Heywood
59b6c63252
Fixed code standards
2026-01-13 14:48:59 +11:00
abhinavgandham
2b30fca670
Changed require_once path in behat_auth_outage.php
2026-01-12 16:23:44 +10:00
abhinavgandham
1183420b3b
Issue #390 : Code cleanup to fix code standards codesniffer errors.
2026-01-12 15:08:32 +10:00
Brendan Heywood
77ee908aed
Improve comments when blocked
2025-10-22 14:19:54 +11:00
Alistair Spark
0fd6a20e8e
5.1+ path has changed due to MDL-83424
2025-09-21 18:47:19 +01:00
Rossco Hellmans
51db933862
Fix URL is blocked message when not behind a proxy/load balancer
...
When there is no proxy/load balancer and curlsecurityblockedhosts is set to
default (i.e. has 127.0.0.1 in it) fetching the outage page will result in
a "The URL is blocked." message. This resolves that issue by passing
ignoresecurity to the curl object.
2025-02-10 16:36:34 +10:00
djarrancotleanu
2a55769a86
Fix #350 : Update unit tests with changes made to climaintenance.php
2024-11-27 09:55:51 +10:00
Dan Marsden
07d4fc89b8
Fix #343 - rename function to prevent unit test failure in 4.5
2024-10-01 10:25:56 +13:00
Rossco Hellmans
c5485849d5
Fix: make access key and allowed ips OR conditional
...
Access keys and allowed IPs should be indpendant of each other and when
at least one of them is satisfied the user should be allowed in.
2024-09-27 12:34:47 +10:00
Matthew Hilton
bfa9569e3b
[ #340 ] Access key exclusion method
2024-08-19 14:31:14 +10:00
Matthew Hilton
97b118593d
cleanup: fixup to match coding standards
2024-08-05 15:22:03 +10:00
David Kwaw
3f64f702c4
Remove MOODLE_INTERNAL test as it is killing the behat test runs
2023-08-03 15:43:09 +10:00
Srdjan
4aa5976ea8
Make Moodle linter happy. Mainly tests.
2023-07-04 15:04:30 +10:00
Qihui Chan
89e2621bf6
Fix failed Github CI tests
2022-12-20 22:12:05 +10:00
Qihui Chan
9473db8c6e
Modify unit tests to declare expected output
2022-12-20 16:58:57 +10:00
Qihui Chan
5465e5fe40
Issue#209 Remove db calls in get_active of outage
2022-07-25 11:13:25 +10:00
Jason den Dulk
c64a33c345
Issue #288 : Split allowed IPs settings into two.
...
Merge two settings when accessing config.
Bump version.
2022-04-28 09:47:58 +10:00
Noemie Ariste
5bf0496c79
Update assertFileNotExists() to assertFileDoesNotExist()
2022-02-25 20:17:58 +13:00
Brendan Heywood
c47d102326
Merge pull request #273 from catalyst/MOODLE_39_STABLE-reusing-workflows
...
Add reusable workflows
2022-01-13 16:42:12 +11:00
Anupama Dharmajan
1f5927c394
Add reusable workflows
2022-01-13 15:38:29 +11:00
Sasha Anastasi
3181522f63
Issue#271: Fix refactored phpunit_util causing unit test error
...
substitute in platform-agnostic functions ->getDebuggingMessages and ->resetDebugging
2021-12-23 08:59:35 +13:00
Dmitrii Metelkin
94fc6fb540
Bypass permissions check when generating a static page to fix #263
2021-09-02 15:44:37 +10:00
Dmitrii Metelkin
cf8c88aefc
Rename test classes to fix #253
2021-07-06 12:51:47 +10:00
Kateryna Degtyariova
17463f0d3e
Fix #234 pick up images from inline style background image.
2021-05-31 14:15:00 +10:00
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