You are here

protected function ComplexWidgetRevisionsTest::setUp in Inline Entity Form 8

Prepares environment for testing.

Overrides InlineEntityFormTestBase::setUp

File

tests/src/FunctionalJavascript/ComplexWidgetRevisionsTest.php, line 42

Class

ComplexWidgetRevisionsTest
IEF complex entity reference revisions tests.

Namespace

Drupal\Tests\inline_entity_form\FunctionalJavascript

Code

protected function setUp() : void {
  parent::setUp();
  $this->user = $this
    ->createUser([
    'administer entity_test__without_bundle content',
    'administer entity_test content',
    'administer content types',
    'create err_level_1 content',
    'edit any err_level_1 content',
    'delete any err_level_1 content',
    'create err_level_2 content',
    'edit any err_level_2 content',
    'delete any err_level_2 content',
    'create err_level_3 content',
    'edit any err_level_3 content',
    'delete any err_level_3 content',
    'view own unpublished content',
  ]);
  $this
    ->drupalLogin($this->user);
  $this->formContentAddUrl = 'node/add/err_level_1';
  $this->entityFormDisplayStorage = $this->container
    ->get('entity_type.manager')
    ->getStorage('entity_form_display');
}