You are here

protected function AjaxCssTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 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 29

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',
  ]);
}