You are here

protected function DefaultTableMappingTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 29
Contains \Drupal\Tests\Core\Entity\Sql\DefaultTableMappingTest.

Class

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

Namespace

Drupal\Tests\Core\Entity\Sql

Code

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