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 \Drupal\Core\Entity\EntityForm @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

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.