X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fckeditor%2Ftests%2Fsrc%2FFunctional%2FCKEditorLoadingTest.php;fp=web%2Fcore%2Fmodules%2Fckeditor%2Ftests%2Fsrc%2FFunctional%2FCKEditorLoadingTest.php;h=cad0947dcf9996f37e2508d9103f0e379e919439;hp=9d6607111fb084199ed22c984f897b56e0c70ae9;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/ckeditor/tests/src/Functional/CKEditorLoadingTest.php b/web/core/modules/ckeditor/tests/src/Functional/CKEditorLoadingTest.php index 9d6607111..cad0947dc 100644 --- a/web/core/modules/ckeditor/tests/src/Functional/CKEditorLoadingTest.php +++ b/web/core/modules/ckeditor/tests/src/Functional/CKEditorLoadingTest.php @@ -101,13 +101,17 @@ class CKEditorLoadingTest extends BrowserTestBase { list($settings, $editor_settings_present, $editor_js_present, $body, $format_selector) = $this->getThingsToCheck(); $ckeditor_plugin = $this->container->get('plugin.manager.editor')->createInstance('ckeditor'); $editor = Editor::load('filtered_html'); - $expected = ['formats' => ['filtered_html' => [ - 'format' => 'filtered_html', - 'editor' => 'ckeditor', - 'editorSettings' => $this->castSafeStrings($ckeditor_plugin->getJSSettings($editor)), - 'editorSupportsContentFiltering' => TRUE, - 'isXssSafe' => FALSE, - ]]]; + $expected = [ + 'formats' => [ + 'filtered_html' => [ + 'format' => 'filtered_html', + 'editor' => 'ckeditor', + 'editorSettings' => $this->castSafeStrings($ckeditor_plugin->getJSSettings($editor)), + 'editorSupportsContentFiltering' => TRUE, + 'isXssSafe' => FALSE, + ], + ], + ]; $this->assertTrue($editor_settings_present, "Text Editor module's JavaScript settings are on the page."); $this->assertIdentical($expected, $this->castSafeStrings($settings['editor']), "Text Editor module's JavaScript settings on the page are correct."); $this->assertTrue($editor_js_present, 'Text Editor JavaScript is present.'); @@ -138,7 +142,9 @@ class CKEditorLoadingTest extends BrowserTestBase { 'editorSettings' => $this->castSafeStrings($ckeditor_plugin->getJSSettings($editor)), 'editorSupportsContentFiltering' => TRUE, 'isXssSafe' => FALSE, - ]]]; + ], + ], + ]; $this->assertTrue($editor_settings_present, "Text Editor module's JavaScript settings are on the page."); $this->assertIdentical($expected, $this->castSafeStrings($settings['editor']), "Text Editor module's JavaScript settings on the page are correct."); $this->assertTrue($editor_js_present, 'Text Editor JavaScript is present.');