protected function EditorLoadingTest::getThingsToCheck

1 call to EditorLoadingTest::getThingsToCheck()
EditorLoadingTest::testLoading in drupal/core/modules/editor/lib/Drupal/editor/Tests/EditorLoadingTest.php
Tests loading of text editors.

File

drupal/core/modules/editor/lib/Drupal/editor/Tests/EditorLoadingTest.php, line 155
Definition of \Drupal\editor\Tests\EditorLoadingTest.

Class

EditorLoadingTest
Tests loading of text editors.

Namespace

Drupal\editor\Tests

Code

protected function getThingsToCheck() {
  $settings = $this
    ->drupalGetSettings();
  return array(
    // JavaScript settings.
    $settings,
    // Editor.module's JS settings present.
    isset($settings['editor']),
    // Editor.module's JS present.
    isset($settings['ajaxPageState']['js']['core/modules/editor/js/editor.js']),
    // Body field.
    $this
      ->xpath('//textarea[@id="edit-body-und-0-value"]'),
    // Format selector.
    $this
      ->xpath('//select[contains(@class, "filter-list")]'),
  );
}