You are here

protected function EntityFormBuilderTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Entity/EntityFormBuilderTest.php \Drupal\Tests\Core\Entity\EntityFormBuilderTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Entity/EntityFormBuilderTest.php, line 43
Contains \Drupal\Tests\Core\Entity\EntityFormBuilderTest.

Class

EntityFormBuilderTest
@coversDefaultClass \Drupal\Core\Entity\EntityFormBuilder @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

protected function setUp() {
  parent::setUp();
  $this->formBuilder = $this
    ->getMock('Drupal\\Core\\Form\\FormBuilderInterface');
  $this->entityManager = $this
    ->getMock('Drupal\\Core\\Entity\\EntityManagerInterface');
  $this->entityFormBuilder = new EntityFormBuilder($this->entityManager, $this->formBuilder);
}