Commit 32de7d74 authored by catch's avatar catch
Browse files

Issue #3316960 by mondrake: Fix PageRenderTest PHPStan L0 issues

(cherry picked from commit 43e4c4a8)
parent f225ff21
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ public function assertPageRenderHookExceptions(string $module, string $hook): vo
    $page = [];
    try {
      $html_renderer->invokePageAttachmentHooks($page);
      $this->error($assertion);
      $this->fail($assertion);
    }
    catch (\LogicException $e) {
      $this->assertEquals('Only #attached and #cache may be set in ' . $hook . '().', $e->getMessage());
@@ -69,7 +69,7 @@ public function assertPageRenderHookExceptions(string $module, string $hook): vo
    $page = [];
    try {
      $html_renderer->invokePageAttachmentHooks($page);
      $this->error($assertion);
      $this->fail($assertion);
    }
    catch (\LogicException $e) {
      $this->assertEquals('Only #attached and #cache may be set in ' . $hook . '().', $e->getMessage());
+0 −5
Original line number Diff line number Diff line
@@ -1125,11 +1125,6 @@ parameters:
			count: 1
			path: modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\system\\\\Kernel\\\\Common\\\\PageRenderTest\\:\\:error\\(\\)\\.$#"
			count: 2
			path: modules/system/tests/src/Kernel/Common/PageRenderTest.php

		-
			message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
			count: 1