You are here

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\Entity

Code

public function testGetAndSet() {
  $this->entityForm->foo = 'bar';
  $this
    ->assertSame('bar', $this->entityForm->foo);
}