You are here

protected function MediaEntityJavascriptTestBase::setUp in Media entity 8

Overrides BrowserTestBase::setUp

2 calls to MediaEntityJavascriptTestBase::setUp()
MediaIefIntegrationTest::setUp in tests/src/FunctionalJavascript/MediaIefIntegrationTest.php
MediaUiJavascriptTest::setUp in tests/src/FunctionalJavascript/MediaUiJavascriptTest.php
2 methods override MediaEntityJavascriptTestBase::setUp()
MediaIefIntegrationTest::setUp in tests/src/FunctionalJavascript/MediaIefIntegrationTest.php
MediaUiJavascriptTest::setUp in tests/src/FunctionalJavascript/MediaUiJavascriptTest.php

File

tests/src/FunctionalJavascript/MediaEntityJavascriptTestBase.php, line 84

Class

MediaEntityJavascriptTestBase
Base class for Media Entity Javascript functional tests.

Namespace

Drupal\Tests\media_entity\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();

  // Have two users ready to be used in tests.
  $this->adminUser = $this
    ->drupalCreateUser(static::$adminUserPermissions);
  $this->nonAdminUser = $this
    ->drupalCreateUser([]);

  // Start off logged in as admin.
  $this
    ->drupalLogin($this->adminUser);
  $this->storage = $this->container
    ->get('entity_type.manager')
    ->getStorage('media');
}