protected function EntityFormBuilderTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 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 38
Class
- EntityFormBuilderTest
- @coversDefaultClass \Drupal\Core\Entity\EntityFormBuilder @group Entity
Namespace
Drupal\Tests\Core\EntityCode
protected function setUp() {
parent::setUp();
$this->formBuilder = $this
->createMock('Drupal\\Core\\Form\\FormBuilderInterface');
$this->entityTypeManager = $this
->createMock('Drupal\\Core\\Entity\\EntityTypeManagerInterface');
$this->entityFormBuilder = new EntityFormBuilder($this->entityTypeManager, $this->formBuilder);
}