function EditorAdminTest::enableUnicornEditor

Same name and namespace in other branches
  1. 11.x 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()
  3. 8.9.x core/modules/editor/tests/src/Functional/EditorAdminTest.php \Drupal\Tests\editor\Functional\EditorAdminTest::enableUnicornEditor()

Enables the unicorn editor.

File

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

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

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