function EntityDisplayBaseTest::testGetTargetBundle
Tests get target bundle.
@legacy-covers ::getTargetBundle
File
- 
              core/tests/ Drupal/ Tests/ Core/ Config/ Entity/ EntityDisplayBaseTest.php, line 76 
Class
Namespace
Drupal\Tests\Core\Config\EntityCode
public function testGetTargetBundle() : void {
  $reflection = new \ReflectionProperty($this->entityDisplay, 'bundle');
  $reflection->setValue($this->entityDisplay, 'test');
  $this->assertEquals('test', $this->entityDisplay
    ->getTargetBundle());
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
