public function EntityDisplayBaseTest::testGetOriginalMode in Drupal 8
Same name and namespace in other branches
- 9 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 39
Class
- EntityDisplayBaseTest
- @coversDefaultClass \Drupal\Core\Entity\EntityDisplayBase
Namespace
Drupal\Tests\Core\Config\EntityCode
public function testGetOriginalMode() {
$mock = $this
->getMockForAbstractClass('\\Drupal\\Core\\Entity\\EntityDisplayBase', [], '', FALSE);
$reflection = new \ReflectionProperty($mock, 'originalMode');
$reflection
->setAccessible(TRUE);
$reflection
->setValue($mock, 'test');
$this
->assertEquals('test', $mock
->getOriginalMode());
}