function EntityDisplayBaseTest::testGetTargetEntityTypeId
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php \Drupal\Tests\Core\Config\Entity\EntityDisplayBaseTest::testGetTargetEntityTypeId()
- 8.9.x core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php \Drupal\Tests\Core\Config\Entity\EntityDisplayBaseTest::testGetTargetEntityTypeId()
- 10 core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php \Drupal\Tests\Core\Config\Entity\EntityDisplayBaseTest::testGetTargetEntityTypeId()
@covers ::getTargetEntityTypeId
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ EntityDisplayBaseTest.php, line 37
Class
- EntityDisplayBaseTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Entity%21EntityDisplayBase.php/class/EntityDisplayBase/11.x" title="Provides a common base class for entity view and form displays." class="local">\Drupal\Core\Entity\EntityDisplayBase</a>
Namespace
Drupal\Tests\Core\Config\EntityCode
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.