Issue #2534532 by michaellander, longwave: Cannot reinstall Forum after it was previously installed

8.1.x
Nathaniel Catchpole 2016-02-29 12:43:15 +09:00
parent 9a47d81c72
commit 2bfd810d71
2 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,9 @@
langcode: en
status: true
dependencies: { }
dependencies:
enforced:
module:
- forum
id: comment_forum
label: Comment_forum
target_entity_type_id: node

View File

@ -121,6 +121,10 @@ class ForumUninstallTest extends WebTestBase {
$this->drupalPostForm(NULL, array(), t('Delete'));
$this->assertResponse(200);
$this->assertFalse((bool) NodeType::load('forum'), 'Node type with machine forum deleted.');
// Double check everything by reinstalling the forum module again.
$this->drupalPostForm('admin/modules', ['modules[Core][forum][enable]' => 1], 'Install');
$this->assertText('Module Forum has been enabled.');
}
/**