function CKEditor5TestBase::setUp

Same name in other branches
  1. 9 core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php \Drupal\Tests\ckeditor5\FunctionalJavascript\CKEditor5TestBase::setUp()
  2. 10 core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php \Drupal\Tests\ckeditor5\FunctionalJavascript\CKEditor5TestBase::setUp()

Overrides BrowserTestBase::setUp

6 calls to CKEditor5TestBase::setUp()
CKEditor5ReadOnlyModeTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5ReadOnlyModeTest.php
CKEditorStylesheetsWarningTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditorStylesheetsWarningTest.php
ImageTestTestBase::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestTestBase.php
ImageUrlTestBase::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageUrlTestBase.php
JSTranslationTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/JSTranslationTest.php

... See full list

6 methods override CKEditor5TestBase::setUp()
CKEditor5ReadOnlyModeTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5ReadOnlyModeTest.php
CKEditorStylesheetsWarningTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditorStylesheetsWarningTest.php
ImageTestTestBase::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestTestBase.php
ImageUrlTestBase::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageUrlTestBase.php
JSTranslationTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/JSTranslationTest.php

... See full list

File

core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php, line 39

Class

CKEditor5TestBase
Base class for testing CKEditor 5.

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    $this->drupalCreateContentType([
        'type' => 'page',
    ]);
    $this->drupalLogin($this->drupalCreateUser([
        'administer filters',
        'create page content',
        'edit own page content',
    ]));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.