Issue #2294083 by ParisLiakos: Remove usages of module_uninstall().
parent
87e675f09b
commit
937be05a99
|
@ -54,7 +54,7 @@ class AggregatorConfigurationTest extends AggregatorTestBase {
|
|||
|
||||
// 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);
|
||||
|
|
|
@ -67,7 +67,7 @@ class UpdateFeedItemTest extends AggregatorTestBase {
|
|||
// 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);
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ class ConfigInstallWebTest extends WebTestBase {
|
|||
$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);
|
||||
|
|
|
@ -34,7 +34,7 @@ class EntityApiInfoTest extends WebTestBase {
|
|||
$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.');
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ class LanguageSelectElementTest extends WebTestBase {
|
|||
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');
|
||||
|
|
|
@ -44,7 +44,7 @@ class ClassLoaderTest extends WebTestBase {
|
|||
*/
|
||||
function testClassLoadingDisabledModules() {
|
||||
// Ensure that module_autoload_test is disabled.
|
||||
module_uninstall(array('module_autoload_test'), FALSE);
|
||||
$this->container->get('module_handler')->uninstall(array('module_autoload_test'), FALSE);
|
||||
$this->resetAll();
|
||||
// Check twice to test an unprimed and primed system_list() cache.
|
||||
for ($i=0; $i<2; $i++) {
|
||||
|
|
|
@ -30,7 +30,7 @@ class UninstallTest extends WebTestBase {
|
|||
function testUserPermsUninstalled() {
|
||||
// Uninstalls the module_test module, so hook_modules_uninstalled()
|
||||
// is executed.
|
||||
module_uninstall(array('module_test'));
|
||||
$this->container->get('module_handler')->uninstall(array('module_test'));
|
||||
|
||||
// Are the perms defined by module_test removed?
|
||||
$this->assertFalse(user_roles(FALSE, 'module_test perm'), 'Permissions were all removed.');
|
||||
|
|
|
@ -190,7 +190,7 @@ class VocabularyCrudTest extends TaxonomyTestBase {
|
|||
entity_create('field_instance_config', $this->instance_definition)->save();
|
||||
|
||||
require_once DRUPAL_ROOT . '/core/includes/install.inc';
|
||||
module_uninstall(array('taxonomy'));
|
||||
$this->container->get('module_handler')->uninstall(array('taxonomy'));
|
||||
\Drupal::moduleHandler()->install(array('taxonomy'));
|
||||
|
||||
// Now create a vocabulary with the same name. All field instances
|
||||
|
|
Loading…
Reference in New Issue