protected function CKEditorLoadingTest::getThingsToCheck

1 call to CKEditorLoadingTest::getThingsToCheck()
CKEditorLoadingTest::testLoading in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Tests/CKEditorLoadingTest.php
Tests loading of CKEditor CSS, JS and JS settings.

File

drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Tests/CKEditorLoadingTest.php, line 139
Definition of \Drupal\ckeditor\Tests\CKEditorLoadingTest.

Class

CKEditorLoadingTest
Tests loading of CKEditor.

Namespace

Drupal\ckeditor\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")]'),
  );
}