You are here

protected function CKEditorAdminTest::setUp in Drupal 8

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

Class

CKEditorAdminTest
Tests administration of CKEditor.

Namespace

Drupal\Tests\ckeditor\Functional

Code

protected function setUp() {
  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',
  ]);
}