function CKEditorLoadingTest::getThingsToCheck
Same name in other branches
- 8.9.x core/modules/ckeditor/tests/src/Functional/CKEditorLoadingTest.php \Drupal\Tests\ckeditor\Functional\CKEditorLoadingTest::getThingsToCheck()
1 call to CKEditorLoadingTest::getThingsToCheck()
- CKEditorLoadingTest::testLoading in core/
modules/ ckeditor/ tests/ src/ Functional/ CKEditorLoadingTest.php - Tests loading of CKEditor CSS, JS and JS settings.
File
-
core/
modules/ ckeditor/ tests/ src/ Functional/ CKEditorLoadingTest.php, line 223
Class
- CKEditorLoadingTest
- Tests loading of CKEditor.
Namespace
Drupal\Tests\ckeditor\FunctionalCode
protected function getThingsToCheck() {
$settings = $this->getDrupalSettings();
return [
// JavaScript settings.
$settings,
// Editor.module's JS settings present.
isset($settings['editor']),
// Editor.module's JS present. Note: ckeditor/drupal.ckeditor depends on
// editor/drupal.editor, hence presence of the former implies presence of
// the latter.
isset($settings['ajaxPageState']['libraries']) && in_array('ckeditor/drupal.ckeditor', explode(',', $settings['ajaxPageState']['libraries'])),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.