function CKEditor5TestBase::setUp

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

Overrides BrowserTestBase::setUp

7 calls to CKEditor5TestBase::setUp()
CKEditor5ToolbarTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5ToolbarTest.php
CKEditorStylesheetsWarningTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditorStylesheetsWarningTest.php
ImageTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTest.php
ImageUrlTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageUrlTest.php
JSTranslationTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/JSTranslationTest.php

... See full list

7 methods override CKEditor5TestBase::setUp()
CKEditor5ToolbarTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5ToolbarTest.php
CKEditorStylesheetsWarningTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditorStylesheetsWarningTest.php
ImageTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTest.php
ImageUrlTest::setUp in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageUrlTest.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 34

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.