function EditorLoadingTest::getThingsToCheck
Same name in other branches
- 9 core/modules/editor/tests/src/Functional/EditorLoadingTest.php \Drupal\Tests\editor\Functional\EditorLoadingTest::getThingsToCheck()
- 8.9.x core/modules/editor/tests/src/Functional/EditorLoadingTest.php \Drupal\Tests\editor\Functional\EditorLoadingTest::getThingsToCheck()
- 11.x core/modules/editor/tests/src/Functional/EditorLoadingTest.php \Drupal\Tests\editor\Functional\EditorLoadingTest::getThingsToCheck()
2 calls to EditorLoadingTest::getThingsToCheck()
- EditorLoadingTest::testLoading in core/
modules/ editor/ tests/ src/ Functional/ EditorLoadingTest.php - Tests loading of text editors.
- EditorLoadingTest::testSupportedElementTypes in core/
modules/ editor/ tests/ src/ Functional/ EditorLoadingTest.php - Tests supported element types.
File
-
core/
modules/ editor/ tests/ src/ Functional/ EditorLoadingTest.php, line 311
Class
- EditorLoadingTest
- Tests loading of text editors.
Namespace
Drupal\Tests\editor\FunctionalCode
protected function getThingsToCheck($field_name, $type = 'textarea') {
$settings = $this->getDrupalSettings();
return [
// JavaScript settings.
$settings,
// Editor.module's JS settings present.
isset($settings['editor']),
// Editor.module's JS present.
str_contains($this->getSession()
->getPage()
->getContent(), $this->getModulePath('editor') . '/js/editor.js'),
// Body field.
'//' . $type . '[@id="edit-' . $field_name . '-0-value"]',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.