You are here

protected function EditorAdminTest::enableUnicornEditor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/editor/src/Tests/EditorAdminTest.php \Drupal\editor\Tests\EditorAdminTest::enableUnicornEditor()

Enables the unicorn editor.

2 calls to EditorAdminTest::enableUnicornEditor()
EditorAdminTest::addEditorToNewFormat in core/modules/editor/src/Tests/EditorAdminTest.php
Adds an editor to a new format using the UI.
EditorAdminTest::testAddEditorToExistingFormat in core/modules/editor/src/Tests/EditorAdminTest.php
Tests adding a text editor to an existing text format.

File

core/modules/editor/src/Tests/EditorAdminTest.php, line 181
Contains \Drupal\editor\Tests\EditorAdminTest.

Class

EditorAdminTest
Tests administration of text editors.

Namespace

Drupal\editor\Tests

Code

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