function EditorAdminTest::enableUnicornEditor
Same name in other branches
- 9 core/modules/editor/tests/src/Functional/EditorAdminTest.php \Drupal\Tests\editor\Functional\EditorAdminTest::enableUnicornEditor()
- 8.9.x core/modules/editor/tests/src/Functional/EditorAdminTest.php \Drupal\Tests\editor\Functional\EditorAdminTest::enableUnicornEditor()
- 11.x 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 200
Class
- EditorAdminTest
- Tests administration of text editors.
Namespace
Drupal\Tests\editor\FunctionalCode
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.