public function EntityFormTest::testGetAndSet in Drupal 8
Tests undeclared properties are not broken by the BC layer.
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityFormTest.php, line 276
Class
- EntityFormTest
- @coversDefaultClass \Drupal\Core\Entity\EntityForm @group Entity
Namespace
Drupal\Tests\Core\EntityCode
public function testGetAndSet() {
$this->entityForm->foo = 'bar';
$this
->assertSame('bar', $this->entityForm->foo);
}