Commit 91597564 authored by webchick's avatar webchick
Browse files

Issue #1912028 by Wim Leers: Fixed CKEditorPluginManagerTest fails because...

Issue #1912028 by Wim Leers: Fixed CKEditorPluginManagerTest fails because plugins are discovered in slightly different order.
parent 81d60495
...@@ -67,7 +67,9 @@ function testEnabledPlugins() { ...@@ -67,7 +67,9 @@ function testEnabledPlugins() {
$editor = entity_load('editor', 'filtered_html'); $editor = entity_load('editor', 'filtered_html');
// Case 1: no CKEditor plugins. // Case 1: no CKEditor plugins.
$this->assertIdentical(array('internal', 'stylescombo'), array_keys($this->manager->getDefinitions()), 'No CKEditor plugins found besides the built-in ones.'); $definitions = array_keys($this->manager->getDefinitions());
sort($definitions);
$this->assertIdentical(array('internal', 'stylescombo'), $definitions, 'No CKEditor plugins found besides the built-in ones.');
$this->assertIdentical(array(), $this->manager->getEnabledPlugins($editor), 'Only built-in plugins are enabled.'); $this->assertIdentical(array(), $this->manager->getEnabledPlugins($editor), 'Only built-in plugins are enabled.');
$this->assertIdentical(array('internal' => NULL), $this->manager->getEnabledPlugins($editor, TRUE), 'Only the "internal" plugin is enabled.'); $this->assertIdentical(array('internal' => NULL), $this->manager->getEnabledPlugins($editor, TRUE), 'Only the "internal" plugin is enabled.');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment