diff --git a/core/modules/system/lib/Drupal/system/Tests/Module/DependencyTest.php b/core/modules/system/lib/Drupal/system/Tests/Module/DependencyTest.php index d541500..cb47b46 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Module/DependencyTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Module/DependencyTest.php @@ -2,7 +2,7 @@ /** * @file - * Definition of Drupal\system\Tests\Module\DependencyTest. + * Contains \Drupal\system\Tests\Module\DependencyTest. */ namespace Drupal\system\Tests\Module; @@ -108,7 +108,6 @@ function testEnableRequirementsFailureDependency() { // Makes sure that already enabled modules the failing modules depend on // were not disabled. $this->assertModules(array('comment'), TRUE); - } /** @@ -129,7 +128,7 @@ function testModuleEnableOrder() { // - options depends on number // - ban depends on xmlrpc (via module_test) // The correct enable order is: - $expected_order = array('xmlrpc', 'ban', 'filter', 'text', 'node', 'datetime', 'comment', 'history', 'number', 'options', 'taxonomy', 'forum'); + $expected_order = array('filter', 'text', 'xmlrpc', 'ban', 'node', 'datetime', 'comment', 'history', 'number', 'options', 'taxonomy', 'forum'); // Enable the modules through the UI, verifying that the dependency chain // is correct. @@ -137,8 +136,10 @@ function testModuleEnableOrder() { $edit['modules[Core][forum][enable]'] = 'forum'; $this->drupalPostForm('admin/modules', $edit, t('Save configuration')); $this->assertModules(array('forum'), FALSE); - $this->assertText(t('You must enable the Node, History, Taxonomy, Options, Text, Filter, Number, Comment, Datetime, Ban, XML-RPC modules to install Forum.')); + $this->assertText(t('You must enable the Node, Text, Filter, History, Taxonomy, Options, Number, Comment, Datetime, Ban, XML-RPC modules to install Forum.')); $edit['modules[Core][node][enable]'] = 'node'; + $edit['modules[Field types][text][enable]'] = 'text'; + $edit['modules[Core][filter][enable]'] = 'filter'; $edit['modules[Core][history][enable]'] = 'history'; $edit['modules[Field types][options][enable]'] = 'options'; $edit['modules[Field types][number][enable]'] = 'number'; @@ -183,4 +184,5 @@ function testUninstallDependents() { $this->drupalPostForm(NULL, NULL, t('Uninstall')); $this->assertText(t('The selected modules have been uninstalled.'), 'Modules status has been updated.'); } + }