Loading core/modules/dblog/tests/src/Functional/DbLogResourceTest.php +15 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,13 @@ class DbLogResourceTest extends ResourceTestBase { */ protected static $modules = ['rest', 'dblog']; /** * The entity type ID. * * @var string */ protected static $entityTypeId = ''; /** * {@inheritdoc} */ Loading Loading @@ -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) {} } core/phpstan-baseline.neon +0 −10 Original line number Diff line number Diff line Loading @@ -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 Loading
core/modules/dblog/tests/src/Functional/DbLogResourceTest.php +15 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,13 @@ class DbLogResourceTest extends ResourceTestBase { */ protected static $modules = ['rest', 'dblog']; /** * The entity type ID. * * @var string */ protected static $entityTypeId = ''; /** * {@inheritdoc} */ Loading Loading @@ -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) {} }
core/phpstan-baseline.neon +0 −10 Original line number Diff line number Diff line Loading @@ -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