function EntityFormTest::setUp

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php, line 40

Class

EntityFormTest
@coversDefaultClass \Drupal\Core\Entity\EntityForm[[api-linebreak]] @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

protected function setUp() : void {
  parent::setUp();
  $this->entityForm = new EntityForm();
  $this->entityType = new EntityType([
    'id' => 'entity_test',
  ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.