You are here

protected function ElementWebTest::setUp in Inline Entity Form 8

Overrides InlineEntityFormTestBase::setUp

File

tests/src/FunctionalJavascript/ElementWebTest.php, line 22

Class

ElementWebTest
Tests the IEF element on a custom form.

Namespace

Drupal\Tests\inline_entity_form\FunctionalJavascript

Code

protected function setUp() : void {
  parent::setUp();
  $this->user = $this
    ->createUser([
    'create ief_simple_single content',
    'edit any ief_test_custom content',
    'view own unpublished content',
    'administer nodes',
  ]);
  $this
    ->drupalLogin($this->user);
  $this->fieldStorageConfigStorage = $this->container
    ->get('entity_type.manager')
    ->getStorage('field_storage_config');
}