function EntityFormTest::testGetAndSet
Tests undeclared properties are not broken by the BC layer.
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityFormTest.php, line 276
Class
- EntityFormTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Entity%21EntityForm.php/class/EntityForm/8.9.x" title="Base class for entity forms." class="local">\Drupal\Core\Entity\EntityForm</a> @group Entity
Namespace
Drupal\Tests\Core\EntityCode
public function testGetAndSet() {
$this->entityForm->foo = 'bar';
$this->assertSame('bar', $this->entityForm->foo);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.