You are here

public function EmbedButtonTest::setUp in D7 Media 8

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/EmbedButtonTest.php, line 26

Class

EmbedButtonTest
Ensures that embedding functionality works perfectly.

Namespace

Drupal\Tests\media\FunctionalJavascript

Code

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

  // Manually installing modules to preserve the order.
  $this
    ->installModule('media_embed_test');
  $this
    ->installModule('media');
  $adminUser = $this
    ->drupalCreateUser([
    'access content',
    'use text format basic_html',
    'use text format full_html',
    'access media_embed entity browser pages',
    'view media',
    'create media',
    'update media',
    'update any media',
    'delete media',
    'delete any media',
    'access media overview',
    'create page content',
    'edit any page content',
  ]);
  $this
    ->drupalLogin($adminUser);
}