You are here

protected function EditorAdminTest::enableUnicornEditor in Drupal 10

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

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