$this->assertIdentical($expected_config,$this->castSafeStrings($this->ckeditor->getJSSettings($editor)),'Generated JS settings are correct for customized configuration.');
@@ -249,6 +250,7 @@ public function testBuildToolbarJSSetting() {
*/
publicfunctiontestBuildContentsCssJSSetting(){
$editor=Editor::load('filtered_html');
$query_string='?0=';
// Default toolbar.
$expected=$this->getDefaultContentsCssConfig();
@@ -256,7 +258,7 @@ public function testBuildContentsCssJSSetting() {
// Enable the editor_test module, which implements hook_ckeditor_css_alter().
$this->assertIdentical($expected,$this->ckeditor->buildContentsCssJSSetting($editor),'"contentsCss" configuration part of JS settings built correctly while a hook_ckeditor_css_alter() implementation exists.');
// Enable LlamaCss plugin, which adds an additional CKEditor stylesheet.
@@ -268,17 +270,17 @@ public function testBuildContentsCssJSSetting() {
$this->assertIdentical($expected,$this->ckeditor->buildContentsCssJSSetting($editor),'"contentsCss" configuration part of JS settings built correctly while a CKEditorPluginInterface implementation exists.');
// Enable the Bartik theme, which specifies a CKEditor stylesheet.
$this->assertIdentical($expected,$this->ckeditor->buildContentsCssJSSetting($editor),'"contentsCss" configuration part of JS settings built correctly while a theme providing a CKEditor stylesheet exists.');
}
@@ -487,9 +489,10 @@ protected function getDefaultToolbarConfig() {