protected function ExtraFieldFormUITest::setUp in Extra Field 8.2
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ ExtraFieldFormUITest.php, line 39
Class
- ExtraFieldFormUITest
- Tests the extra field Form on entity UI pages.
Namespace
Drupal\Tests\extra_field\FunctionalCode
protected function setUp() {
parent::setUp();
$adminUser = $this
->drupalCreateUser([
'administer node form display',
]);
$this
->drupalLogin($adminUser);
$this->entityFrom['first_node_type'] = $this
->setupContentEntityForm('first_node_type');
$this->manageFormUrl['first_node_type'] = 'admin/structure/types/manage/first_node_type/form-display';
$this->entityFrom['another_node_type'] = $this
->setupContentEntityForm('another_node_type');
$this->manageFormUrl['another_node_type'] = 'admin/structure/types/manage/another_node_type/form-display';
}