You are here

protected function MediaEntityTypePluginTest::setUp in Bynder 8.2

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/MediaEntityTypePluginTest.php \Drupal\Tests\bynder\Functional\MediaEntityTypePluginTest::setUp()
  2. 8 tests/src/Functional/MediaEntityTypePluginTest.php \Drupal\Tests\bynder\Functional\MediaEntityTypePluginTest::setUp()
  3. 4.0.x tests/src/Functional/MediaEntityTypePluginTest.php \Drupal\Tests\bynder\Functional\MediaEntityTypePluginTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/MediaEntityTypePluginTest.php, line 35

Class

MediaEntityTypePluginTest
Tests the Media entity type plugin.

Namespace

Drupal\Tests\bynder\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'administer media types',
    'create media',
    'view media',
  ]));

  // Enable standalone media URL's to test how they are displayed.
  $this
    ->config('media.settings')
    ->set('standalone_url', TRUE)
    ->save();
  $this
    ->rebuildAll();
}