You are here

private function EmbeddedMediaTest::getDefaultEditor in Lightning Media 8.3

Returns the first available CKEditor instance ID.

Return value

string|false The first CKEditor instance ID, or FALSE if there are no instances.

1 call to EmbeddedMediaTest::getDefaultEditor()
EmbeddedMediaTest::assertEditor in tests/src/FunctionalJavascript/EmbeddedMediaTest.php
Asserts that a CKEditor instance exists and is fully loaded.

File

tests/src/FunctionalJavascript/EmbeddedMediaTest.php, line 183

Class

EmbeddedMediaTest
Tests embedding media items in CKEditor using the media browser.

Namespace

Drupal\Tests\lightning_media\FunctionalJavascript

Code

private function getDefaultEditor() {
  $keys = $this
    ->getEditors();
  return reset($keys);
}