public function RoleAssignPermissionTest::testRoleAssignSettings in RoleAssign 8
Tests that RoleAssign settings are set up correctly.
File
- tests/
src/ Functional/ RoleAssignPermissionTest.php, line 84
Class
- RoleAssignPermissionTest
- Tests that users can (un)assign roles based on the RoleAssign settings.
Namespace
Drupal\Tests\roleassign\FunctionalCode
public function testRoleAssignSettings() {
$assignable_roles = array_filter(\Drupal::config('roleassign.settings')
->get('roleassign_roles'));
$this
->assertIdentical([
'editor' => 'editor',
'webmaster' => 'webmaster',
], $assignable_roles);
}