Verified Commit a2b684aa authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3278052 by Spokje, mondrake: Fix added core/phpstan-baseline.neon error...

Issue #3278052 by Spokje, mondrake: Fix added core/phpstan-baseline.neon error suppresion for core/modules/dblog/tests/src/Functional/DbLogResourceTest.php
parent e025b904
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -38,6 +38,13 @@ class DbLogResourceTest extends ResourceTestBase {
   */
  protected static $modules = ['rest', 'dblog'];

  /**
   * The entity type ID.
   *
   * @var string
   */
  protected static $entityTypeId = '';

  /**
   * {@inheritdoc}
   */
@@ -151,4 +158,12 @@ protected function getExpectedUnauthorizedAccessCacheability() {
      ->setCacheContexts(['user.permissions']);
  }

  /**
   * Empty function.
   *
   * Needed by PHPStan for unused function
   * CookieResourceTestTrait::assertResponseWhenMissingAuthentication().
   */
  protected function getExpectedUnauthorizedEntityAccessCacheability($is_authenticated) {}

}
+0 −10
Original line number Diff line number Diff line
@@ -4222,13 +4222,3 @@ parameters:
			message: "#^Method Drupal\\\\Tests\\\\Core\\\\Test\\\\TestClass\\:\\:assertTextHelper\\(\\) should return bool but return statement is missing\\.$#"
			count: 1
			path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php

		-
			message: "#^Access to an undefined static property static\\(Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogResourceTest\\)\\:\\:\\$entityTypeId\\.$#"
			count: 1
			path: modules/dblog/tests/src/Functional/DbLogResourceTest.php

		-
			message: "#^Call to an undefined method Drupal\\\\Tests\\\\dblog\\\\Functional\\\\DbLogResourceTest\\:\\:getExpectedUnauthorizedEntityAccessCacheability\\(\\)\\.$#"
			count: 1
			path: modules/dblog/tests/src/Functional/DbLogResourceTest.php