if ($modules) { // Install modules that have migrations that may provide permissions.
\Drupal::
service('module_installer'
)->
install($modules);
$this->
installEntitySchema('block_content'
);
$this->
installConfig(['block_content', 'comment'
]);
$this->
migrateContentTypes();
} $this->
executeMigrations($migrations);
$id_map =
$this->
getMigration('d6_user_role'
)->
getIdMap();
// After all the migrations are run, there are changes to the permissions.
$this->
assertRoles($role_data,
$id_map);
$roles =
[ 'anonymous1',
'authenticated1',
'administrator1',
'migrate_test_role_11',
'migrate_test_role_21',
'migrate_test_role_3_that_is_longer_than_thirty_two_characters1',
];
$this->
assertEmpty(Role::
loadMultiple($roles));