function EntityDisplayBaseTest::testGetTargetEntityTypeId

@covers ::getTargetEntityTypeId

File

core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php, line 37

Class

EntityDisplayBaseTest
@coversDefaultClass \Drupal\Core\Entity\EntityDisplayBase[[api-linebreak]]

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function testGetTargetEntityTypeId() : void {
  $reflection = new \ReflectionProperty($this->entityDisplay, 'targetEntityType');
  $reflection->setValue($this->entityDisplay, 'test');
  $this->assertEquals('test', $this->entityDisplay
    ->getTargetEntityTypeId());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.