You are here

protected function DefaultTableMappingTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php \Drupal\Tests\Core\Entity\Sql\DefaultTableMappingTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php, line 25

Class

DefaultTableMappingTest
@coversDefaultClass \Drupal\Core\Entity\Sql\DefaultTableMapping @group Entity

Namespace

Drupal\Tests\Core\Entity\Sql

Code

protected function setUp() : void {
  parent::setUp();
  $this->entityType = $this
    ->createMock('\\Drupal\\Core\\Entity\\ContentEntityTypeInterface');
  $this->entityType
    ->expects($this
    ->any())
    ->method('id')
    ->willReturn('entity_test');
}