.../Drupal/editor/Tests/EditIntegrationTest.php | 21 +++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/core/modules/editor/lib/Drupal/editor/Tests/EditIntegrationTest.php b/core/modules/editor/lib/Drupal/editor/Tests/EditIntegrationTest.php index 162d604..875f1ef 100644 --- a/core/modules/editor/lib/Drupal/editor/Tests/EditIntegrationTest.php +++ b/core/modules/editor/lib/Drupal/editor/Tests/EditIntegrationTest.php @@ -64,11 +64,12 @@ public static function getInfo() { function setUp() { parent::setUp(); - // Install the Filter and Text Editor modules. - $this->enableModules(array('filter', 'editor')); + // Install the Filter module. + $this->installSchema('system', 'url_alias'); + $this->enableModules(array('user', 'filter')); - // Enable the Text Editor Test module. - $this->enableModules(array('editor_test'), FALSE); + // Enable the Text Editor and Text Editor Test module. + $this->enableModules(array('editor', 'editor_test'), FALSE); // Create a field. $this->field_name = 'field_textarea'; @@ -85,20 +86,16 @@ function setUp() { ); // Create text format. - $full_html_format = array( + $full_html_format = entity_create('filter_format', array( 'format' => 'full_html', 'name' => 'Full HTML', 'weight' => 1, - 'filters' => array( - 'filter_htmlcorrector' => array('status' => 1), - ), - ); - $full_html_format = (object) $full_html_format; - filter_format_save($full_html_format); + 'filters' => array(), + )); + $full_html_format->save(); // Associate text editor with text format. $editor = entity_create('editor', array( - 'name' => $full_html_format->name, 'format' => $full_html_format->format, 'editor' => 'unicorn', ));