function EntityDisplayBaseTest::testGetOriginalMode
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php \Drupal\Tests\Core\Config\Entity\EntityDisplayBaseTest::testGetOriginalMode()
- 8.9.x core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php \Drupal\Tests\Core\Config\Entity\EntityDisplayBaseTest::testGetOriginalMode()
- 10 core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php \Drupal\Tests\Core\Config\Entity\EntityDisplayBaseTest::testGetOriginalMode()
@covers ::getOriginalMode
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ EntityDisplayBaseTest.php, line 57
Class
- EntityDisplayBaseTest
- @coversDefaultClass \Drupal\Core\Entity\EntityDisplayBase
Namespace
Drupal\Tests\Core\Config\EntityCode
public function testGetOriginalMode() : void {
$reflection = new \ReflectionProperty($this->entityDisplay, 'originalMode');
$reflection->setValue($this->entityDisplay, 'test');
$this->assertEquals('test', $this->entityDisplay
->getOriginalMode());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.