protected function FormElementTest::setUp in Entity Browser 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/FormElementTest.php \Drupal\Tests\entity_browser\Functional\FormElementTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ FormElementTest.php, line 37
Class
- FormElementTest
- Tests the entity browser form element.
Namespace
Drupal\Tests\entity_browser\FunctionalCode
protected function setUp() {
parent::setUp();
$this->container
->get('entity_type.manager')
->getStorage('node_type')
->create([
'type' => 'page',
'name' => 'page',
])
->save();
$this->nodes[] = $this
->drupalCreateNode();
$this->nodes[] = $this
->drupalCreateNode();
}