From 802acbd26c24f368e9731d2a0fbdccce25aaeba2 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 5 May 2021 14:09:09 +1200 Subject: [PATCH] PHPunit 9 fixes. --- .../phpunit/local/controllers/maintenance_static_page_test.php | 2 +- tests/phpunit/local/outagelib_test.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/local/controllers/maintenance_static_page_test.php b/tests/phpunit/local/controllers/maintenance_static_page_test.php index b74c93c..8922dce 100644 --- a/tests/phpunit/local/controllers/maintenance_static_page_test.php +++ b/tests/phpunit/local/controllers/maintenance_static_page_test.php @@ -529,7 +529,7 @@ class maintenance_static_page_test extends auth_outage_base_testcase { $generator = new maintenance_static_page_generator(new DOMDocument(), new maintenance_static_page_io()); $matches = $generator->get_urls_from_stylesheet($filecontent); - self::assertInternalType('array', $matches); + self::assertIsArray($matches); self::assertCount(2, $matches); self::assertCount($count, $matches[1]); } diff --git a/tests/phpunit/local/outagelib_test.php b/tests/phpunit/local/outagelib_test.php index 729037b..597ac10 100644 --- a/tests/phpunit/local/outagelib_test.php +++ b/tests/phpunit/local/outagelib_test.php @@ -106,7 +106,7 @@ class outagelib_test extends auth_outage_base_testcase { $size = strlen($OUTPUT->standard_top_of_body_html()); self::assertSame($size, strlen($OUTPUT->standard_top_of_body_html())); // Check styles aren't reinjected. - self::assertNotContains('