You are here

protected function EditorAdminTest::enableUnicornEditor in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/editor/tests/src/Functional/EditorAdminTest.php \Drupal\Tests\editor\Functional\EditorAdminTest::enableUnicornEditor()
  2. 10 core/modules/editor/tests/src/Functional/EditorAdminTest.php \Drupal\Tests\editor\Functional\EditorAdminTest::enableUnicornEditor()

Enables the unicorn editor.

3 calls to EditorAdminTest::enableUnicornEditor()
EditorAdminTest::addEditorToNewFormat in core/modules/editor/tests/src/Functional/EditorAdminTest.php
Adds an editor to a new format using the UI.
EditorAdminTest::testAddEditorToExistingFormat in core/modules/editor/tests/src/Functional/EditorAdminTest.php
Tests adding a text editor to an existing text format.
EditorAdminTest::testSwitchEditorToNone in core/modules/editor/tests/src/Functional/EditorAdminTest.php
Tests switching text editor to none does not throw a TypeError.

File

core/modules/editor/tests/src/Functional/EditorAdminTest.php, line 199

Class

EditorAdminTest
Tests administration of text editors.

Namespace

Drupal\Tests\editor\Functional

Code

protected function enableUnicornEditor() {
  if (!$this->container
    ->get('module_handler')
    ->moduleExists('editor_test')) {
    $this->container
      ->get('module_installer')
      ->install([
      'editor_test',
    ]);
  }
}