commit cecfb2117f15adc86290f29758b7722a91de1814 Author: Lee Rowlands Date: Mon Jan 28 14:03:11 2013 +1000 Comment module cannot be disabled in tests that extend CommentTestBase, there are still existing fields created in the base class setup diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentFieldsTest.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentFieldsTest.php index 9a9b34d..a15a15a 100644 --- a/core/modules/comment/lib/Drupal/comment/Tests/CommentFieldsTest.php +++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentFieldsTest.php @@ -68,25 +68,6 @@ function testCommentEnable() { $this->admin_user = $this->drupalCreateUser(array('access administration pages', 'administer modules')); $this->drupalLogin($this->admin_user); - // Disable the comment module. - $edit = array(); - $edit['modules[Core][comment][enable]'] = FALSE; - $this->drupalPost('admin/modules', $edit, t('Save configuration')); - $this->rebuildContainer(); - $this->assertFalse(module_exists('comment'), 'Comment module disabled.'); - - // Enable core content type module (book). - $edit = array(); - $edit['modules[Core][book][enable]'] = 'book'; - $this->drupalPost('admin/modules', $edit, t('Save configuration')); - - // Now enable the comment module. - $edit = array(); - $edit['modules[Core][comment][enable]'] = 'comment'; - $this->drupalPost('admin/modules', $edit, t('Save configuration')); - $this->rebuildContainer(); - $this->assertTrue(module_exists('comment'), 'Comment module enabled.'); - // Create nodes of each type. comment_add_default_comment_field('node', 'book'); $book_node = $this->drupalCreateNode(array(