From 26baaf9993efd544c811e21827bb80fb5c3897aa Mon Sep 17 00:00:00 2001 From: Mikhail Golenkov Date: Fri, 7 Feb 2020 15:41:52 +1100 Subject: [PATCH] Fix unit tests #179. --- tests/phpunit/local/controllers/fixtures/withurls-quoted.css | 2 +- tests/phpunit/local/controllers/fixtures/withurls.css | 2 +- .../local/controllers/maintenance_static_page_test.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/local/controllers/fixtures/withurls-quoted.css b/tests/phpunit/local/controllers/fixtures/withurls-quoted.css index 012773c..884fef7 100644 --- a/tests/phpunit/local/controllers/fixtures/withurls-quoted.css +++ b/tests/phpunit/local/controllers/fixtures/withurls-quoted.css @@ -3,5 +3,5 @@ a { } div { - background-image: url('/auth/outage/tests/phpunit/local/controllers/fixtures/catalyst.png'); + background-image: url('/moodle/auth/outage/tests/phpunit/local/controllers/fixtures/catalyst.png'); } \ No newline at end of file diff --git a/tests/phpunit/local/controllers/fixtures/withurls.css b/tests/phpunit/local/controllers/fixtures/withurls.css index 7e1e985..c5b57fa 100644 --- a/tests/phpunit/local/controllers/fixtures/withurls.css +++ b/tests/phpunit/local/controllers/fixtures/withurls.css @@ -3,5 +3,5 @@ a { } div { - background-image: url(/auth/outage/tests/phpunit/local/controllers/fixtures/catalyst.png); + background-image: url(/moodle/auth/outage/tests/phpunit/local/controllers/fixtures/catalyst.png); } \ No newline at end of file diff --git a/tests/phpunit/local/controllers/maintenance_static_page_test.php b/tests/phpunit/local/controllers/maintenance_static_page_test.php index 4176ee5..29a6805 100644 --- a/tests/phpunit/local/controllers/maintenance_static_page_test.php +++ b/tests/phpunit/local/controllers/maintenance_static_page_test.php @@ -101,7 +101,7 @@ class maintenance_static_page_test extends auth_outage_base_testcase { $page->generate(); // Check for css file. - self::assertFileExists($page->get_io()->get_resources_folder().'/622ef6e83acfcb274cdf37bdb3bffa0923f9a7ad.dGV4dC9wbGFpbg'); + self::assertFileExists($page->get_io()->get_resources_folder().'/d8643101d96b093e642b15544e4d1f7815b5ba55.dGV4dC9wbGFpbg'); // Check for catalyst.png file referenced in url(..) of css. self::assertFileExists($page->get_io()->get_resources_folder().'/ff7f7f87a26a908fc72930eaefb6b57306361d16.aW1hZ2UvcG5n'); @@ -116,7 +116,7 @@ class maintenance_static_page_test extends auth_outage_base_testcase { $page->generate(); // Check for css file. - self::assertFileExists($page->get_io()->get_resources_folder().'/1d84b6d321fef780237f84834b7316c079221a31.dGV4dC9wbGFpbg'); + self::assertFileExists($page->get_io()->get_resources_folder().'/9fe2374b03953e1949d54ab750be2d8706891c03.dGV4dC9wbGFpbg'); // Check for catalyst.png file referenced in url(..) of css. self::assertFileExists($page->get_io()->get_resources_folder().'/ff7f7f87a26a908fc72930eaefb6b57306361d16.aW1hZ2UvcG5n');