protected function EmbeddedMediaTest::setUp in Lightning Media 8.3
Overrides BrowserTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ EmbeddedMediaTest.php, line 56
Class
- EmbeddedMediaTest
- Tests embedding media items in CKEditor using the media browser.
Namespace
Drupal\Tests\lightning_media\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
$this
->addMediaLibraryToEntityBrowsers();
$this
->drupalCreateContentType([
'type' => 'page',
]);
$account = $this
->drupalCreateUser([
'create page content',
'use text format rich_text',
]);
$account
->addRole('media_creator');
$account
->save();
$this
->drupalLogin($account);
}