$enable_order = \Drupal::
state()->
get('module_test.install_order',
[]);
$this->
assertSame(['help', 'config', 'dblog'
],
$enable_order);
} /**
* Tests uninstalling a module installed by a profile.
*/
public function testUninstallProfileDependency() { $profile = 'testing_install_profile_dependencies';
$dependency = 'dblog';
$non_dependency = 'ban';
$this->
setInstallProfile($profile);
// Prime the \Drupal\Core\Extension\ExtensionList::getPathname() static
// cache with the location of the testing_install_profile_dependencies
// profile as it is not the currently active profile and we don't yet have
// any cached way to retrieve its location.
// @todo Remove as part of https://www.drupal.org/node/2186491
$profile_list = \Drupal::
service('extension.list.profile'
);
assert($profile_list instanceof ProfileExtensionList
);
$profile_list->
setPathname($profile, 'core/profiles/' .
$profile . '/' .
$profile . '.info.yml'
);
$this->
enableModules(['module_test',
$profile]);
$data = \Drupal::
service('extension.list.module'
)->
reset()->
getList();