function CKEditorAdminTest::setUp

Same name in other branches
  1. 8.9.x core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php \Drupal\Tests\ckeditor\Functional\CKEditorAdminTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/ckeditor/tests/src/Functional/CKEditorAdminTest.php, line 41

Class

CKEditorAdminTest
Tests administration of CKEditor.

Namespace

Drupal\Tests\ckeditor\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Create text format.
    $filtered_html_format = FilterFormat::create([
        'format' => 'filtered_html',
        'name' => 'Filtered HTML',
        'weight' => 0,
        'filters' => [],
    ]);
    $filtered_html_format->save();
    // Create admin user.
    $this->adminUser = $this->drupalCreateUser([
        'administer filters',
    ]);
}

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