Commit 937be05a authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2294083 by ParisLiakos: Remove usages of module_uninstall().

parent 87e675f0
Loading
Loading
Loading
Loading
+1 −1
Changes for core/modules/aggregator/src/Tests/AggregatorConfigurationTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ function testSettingsPage() {

    // Make sure settings form is still accessible even after disabling a module
    // that provides the selected plugins.
    module_uninstall(array('aggregator_test'));
    $this->container->get('module_handler')->uninstall(array('aggregator_test'));
    $this->resetAll();
    $this->drupalGet('admin/config/services/aggregator/settings');
    $this->assertResponse(200);
+1 −1
Changes for core/modules/aggregator/src/Tests/UpdateFeedItemTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ function testUpdateFeedItem() {
    // Make sure updating items works even after disabling a module
    // that provides the selected plugins.
    $this->enableTestPlugins();
    module_uninstall(array('aggregator_test'));
    $this->container->get('module_handler')->uninstall(array('aggregator_test'));
    $this->updateFeedItems($feed);
    $this->assertResponse(200);
  }
+1 −1
Changes for core/modules/config/src/Tests/ConfigInstallWebTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ function testIntegrationModuleReinstallation() {
    $this->container->get('config.factory')->reset();

    // Disable and uninstall the integration module.
    module_uninstall(array('config_integration_test'));
    $this->container->get('module_handler')->uninstall(array('config_integration_test'));

    // Verify the integration module's config was uninstalled.
    $config_static = \Drupal::config($default_config);
+1 −1
Changes for core/modules/system/src/Tests/Entity/EntityApiInfoTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ function testEntityInfoChanges() {
    $this->assertEqual($entity_type->getLabel(), 'New label.', 'New label appears in entity info.');

    // Uninstall the providing module and make sure the entity type is gone.
    module_uninstall(array('entity_cache_test', 'entity_cache_test_dependency'));
    $this->container->get('module_handler')->uninstall(array('entity_cache_test', 'entity_cache_test_dependency'));
    $entity_types = \Drupal::entityManager()->getDefinitions();
    $this->assertFalse(isset($entity_types['entity_cache_test']), 'Entity type of the providing module is gone.');
  }
+1 −1
Changes for core/modules/system/src/Tests/Form/LanguageSelectElementTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ function testLanguageSelectElementOptions() {
  function testHiddenLanguageSelectElement() {
    // Disable the language module, so that the language select field will not
    // be rendered.
    module_uninstall(array('language'));
    $this->container->get('module_handler')->uninstall(array('language'));
    $this->drupalGet('form-test/language_select');
    // Check that the language fields were rendered on the page.
    $ids = array('edit-languages-all', 'edit-languages-configurable', 'edit-languages-locked', 'edit-languages-config-and-locked');
Loading