mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Merge pull request #371 from SashaAnastasi/TOTARA_19-fixes
Totara 19 fixes
This commit is contained in:
@@ -105,5 +105,6 @@ abstract class base_testcase extends \core_phpunit\testcase {
|
||||
foreach (outagedb::get_all() as $i => $outage) {
|
||||
$DB->delete_records('auth_outage', ['id' => $outage->id]);
|
||||
}
|
||||
parent::tearDown();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
use auth_outage\local\outage;
|
||||
use auth_outage\local\controllers\infopage;
|
||||
use context_system;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
require_once(__DIR__.'/base_testcase.php');
|
||||
|
||||
@@ -27,7 +27,6 @@ use auth_outage\task\update_static_page;
|
||||
use auth_outage\local\controllers\maintenance_static_page;
|
||||
use auth_outage\local\controllers\maintenance_static_page_io;
|
||||
use auth_outage\local\controllers\maintenance_static_page_generator;
|
||||
use DOMDocument;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
require_once(__DIR__.'/base_testcase.php');
|
||||
|
||||
2
tests/fixtures/withurls-quoted.css
vendored
2
tests/fixtures/withurls-quoted.css
vendored
@@ -3,5 +3,5 @@ a {
|
||||
}
|
||||
|
||||
div {
|
||||
background-image: url('/moodle/auth/outage/tests/local/controllers/fixtures/catalyst.png');
|
||||
background-image: url('/moodle/auth/outage/tests/fixtures/catalyst.png');
|
||||
}
|
||||
|
||||
2
tests/fixtures/withurls.css
vendored
2
tests/fixtures/withurls.css
vendored
@@ -3,5 +3,5 @@ a {
|
||||
}
|
||||
|
||||
div {
|
||||
background-image: url(/moodle/auth/outage/tests/local/controllers/fixtures/catalyst.png);
|
||||
background-image: url(/moodle/auth/outage/tests/fixtures/catalyst.png);
|
||||
}
|
||||
|
||||
@@ -747,7 +747,7 @@ EOT;
|
||||
*
|
||||
* We need this because we modify the request headers,
|
||||
* see https://github.com/sebastianbergmann/phpunit/issues/720#issuecomment-10421092
|
||||
* @runInSeparateProcess
|
||||
* @runClassInSeparateProcess
|
||||
*/
|
||||
public function test_evaluation_maintenancepage(?string $allowedips, ?string $iptouse, ?string $accesskey,
|
||||
?string $accesskeytouse, array $expectedoutputs) {
|
||||
|
||||
Reference in New Issue
Block a user