// Uninstall a module.
$edit =
[];
$edit['uninstall[taxonomy]'
] = TRUE;
$this->
drupalGet('admin/modules/uninstall'
);
$this->
submitForm($edit, 'Uninstall'
);
// Confirm the uninstall form.
$this->
submitForm([], 'Uninstall'
);
$this->
rebuildContainer();
// Assert that the subtrees hash has been altered because the subtrees
// structure changed.
$this->
assertDifferentHash();
// Enable a module.
$edit =
[];
$edit['modules[taxonomy][enable]'
] = TRUE;
$this->
drupalGet('admin/modules'
);
$this->
submitForm($edit, 'Install'
);
$this->
rebuildContainer();
// Assert that the subtrees hash has been altered because the subtrees
// structure changed.
$this->
assertDifferentHash();
}