Loading core/.phpstan-baseline.php +0 −6 Original line number Diff line number Diff line Loading @@ -61353,12 +61353,6 @@ 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php', ]; $ignoreErrors[] = [ // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityFormTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\EntityFormTest\\:\\:providerTestFormIds\\(\\) has no return type specified\\.$#', core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php +4 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,10 @@ protected function setUp(): void { public function testFormId($expected, $definition): void { $this->entityType->set('entity_keys', ['bundle' => $definition['bundle']]); $entity = $this->getMockForAbstractClass('Drupal\Core\Entity\EntityBase', [[], $definition['entity_type']], '', TRUE, TRUE, TRUE, ['getEntityType', 'bundle']); $entity = $this->getMockBuilder(StubEntityBase::class) ->setConstructorArgs([[], $definition['entity_type']]) ->onlyMethods(['getEntityType', 'bundle']) ->getMock(); $entity->expects($this->any()) ->method('getEntityType') Loading Loading
core/.phpstan-baseline.php +0 −6 Original line number Diff line number Diff line Loading @@ -61353,12 +61353,6 @@ 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php', ]; $ignoreErrors[] = [ // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityFormTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Entity\\\\EntityFormTest\\:\\:providerTestFormIds\\(\\) has no return type specified\\.$#',
core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php +4 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,10 @@ protected function setUp(): void { public function testFormId($expected, $definition): void { $this->entityType->set('entity_keys', ['bundle' => $definition['bundle']]); $entity = $this->getMockForAbstractClass('Drupal\Core\Entity\EntityBase', [[], $definition['entity_type']], '', TRUE, TRUE, TRUE, ['getEntityType', 'bundle']); $entity = $this->getMockBuilder(StubEntityBase::class) ->setConstructorArgs([[], $definition['entity_type']]) ->onlyMethods(['getEntityType', 'bundle']) ->getMock(); $entity->expects($this->any()) ->method('getEntityType') Loading