protected function ComplexWidgetTest::setUp in Inline Entity Form 8
Overrides InlineEntityFormTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ ComplexWidgetTest.php, line 49
Class
- ComplexWidgetTest
- IEF complex field widget tests.
Namespace
Drupal\Tests\inline_entity_form\FunctionalJavascriptCode
protected function setUp() : void {
parent::setUp();
$this->user = $this
->createUser([
'create ief_reference_type content',
'create ief_test_nested1 content',
'create ief_test_nested2 content',
'create ief_test_nested3 content',
'edit any ief_reference_type content',
'delete any ief_reference_type content',
'create ief_test_complex content',
'edit any ief_test_complex content',
'delete any ief_test_complex content',
'edit any ief_test_nested1 content',
'edit any ief_test_nested2 content',
'edit any ief_test_nested3 content',
'view own unpublished content',
'administer content types',
]);
$this
->drupalLogin($this->user);
$this->formContentAddUrl = 'node/add/ief_test_complex';
$this->entityFormDisplayStorage = $this->container
->get('entity_type.manager')
->getStorage('entity_form_display');
}