public function EntityDisplayBaseTest::testGetMode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php \Drupal\Tests\Core\Config\Entity\EntityDisplayBaseTest::testGetMode()
@covers ::getMode
File
- core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ EntityDisplayBaseTest.php, line 33 - Contains \Drupal\Tests\Core\Config\Entity\EntityDisplayBaseTest.
Class
- EntityDisplayBaseTest
- @coversDefaultClass \Drupal\Core\Entity\EntityDisplayBase
Namespace
Drupal\Tests\Core\Config\EntityCode
public function testGetMode() {
$mock = $this
->getMockForAbstractClass('\\Drupal\\Core\\Entity\\EntityDisplayBase', [], '', FALSE);
$reflection = new \ReflectionProperty($mock, 'mode');
$reflection
->setAccessible(TRUE);
$reflection
->setValue($mock, 'test');
$this
->assertEquals('test', $mock
->getMode());
}