diff --git a/core/modules/action/lib/Drupal/action/Tests/ActionUninstallTest.php b/core/modules/action/lib/Drupal/action/Tests/ActionUninstallTest.php new file mode 100644 index 0000000..905abf4 --- /dev/null +++ b/core/modules/action/lib/Drupal/action/Tests/ActionUninstallTest.php @@ -0,0 +1,52 @@ + 'Uninstall action test', + 'description' => 'Tests that uninstalling actions does not remove other module\'s actions.', + 'group' => 'Action', + ); + } + + /** + * Tests Action uninstall. + */ + public function testActionUninstall() { + \Drupal::moduleHandler()->disable(array('action')); + \Drupal::moduleHandler()->uninstall(array('action')); + + $this->assertTrue(entity_load('action', 'user_block_user_action', TRUE)); + + $admin_user = $this->drupalCreateUser(array('administer users')); + $this->drupalLogin($admin_user); + + $this->drupalGet('admin/people'); + // Ensure we have the user_block_user_action listed. + $this->assertRaw(''); + + } + +}