protected function EntityFormBuilderTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Entity/EntityFormBuilderTest.php \Drupal\Tests\Core\Entity\EntityFormBuilderTest::setUp()
- 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() : void {
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);
}