function AjaxCssTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/ckeditor/tests/src/FunctionalJavascript/AjaxCssTest.php, line 30

Class

AjaxCssTest
Tests delivery of CSS to CKEditor via AJAX.

Namespace

Drupal\Tests\ckeditor\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    FilterFormat::create([
        'format' => 'test_format',
        'name' => $this->randomMachineName(),
    ])
        ->save();
    Editor::create([
        'editor' => 'ckeditor',
        'format' => 'test_format',
    ])->save();
    user_role_grant_permissions('anonymous', [
        'use text format test_format',
    ]);
}

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