protected function EditorLoadingTest::getThingsToCheck in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/editor/src/Tests/EditorLoadingTest.php \Drupal\editor\Tests\EditorLoadingTest::getThingsToCheck()
2 calls to EditorLoadingTest::getThingsToCheck()
- EditorLoadingTest::testLoading in core/modules/editor/src/Tests/EditorLoadingTest.php
- Tests loading of text editors.
- EditorLoadingTest::testSupportedElementTypes in core/modules/editor/src/Tests/EditorLoadingTest.php
- Test supported element types.
File
- core/modules/editor/src/Tests/EditorLoadingTest.php, line 273
- Contains \Drupal\editor\Tests\EditorLoadingTest.
Class
- EditorLoadingTest
- Tests loading of text editors.
Namespace
Drupal\editor\Tests
Code
protected function getThingsToCheck($field_name, $type = 'textarea') {
$settings = $this
->getDrupalSettings();
return array(
$settings,
isset($settings['editor']),
strpos($this
->getRawContent(), drupal_get_path('module', 'editor') . '/js/editor.js') !== FALSE,
$this
->xpath('//' . $type . '[@id="edit-' . $field_name . '-0-value"]'),
$this
->xpath('//select[contains(@class, "filter-list")]'),
);
}