public function CKEditorMediaBrowserTest::setUp in Lightning Media 8.3
Overrides BrowserTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ CKEditorMediaBrowserTest.php, line 42
Class
- CKEditorMediaBrowserTest
- Tests the media browser's integration with CKEditor.
Namespace
Drupal\Tests\lightning_media\FunctionalJavascriptCode
public function setUp() {
parent::setUp();
$this
->drupalCreateContentType([
'type' => 'page',
]);
$account = $this
->drupalCreateUser([
'access media overview',
'create page content',
'edit own page content',
'access ckeditor_media_browser entity browser pages',
'access media_browser entity browser pages',
'use text format rich_text',
]);
$this
->drupalLogin($account);
$this
->addMediaLibraryToEntityBrowsers();
module_load_install('lightning_media_image');
lightning_media_image_install();
}