add UserPickerType

This commit is contained in:
2018-04-16 12:03:47 +02:00
parent 7fb2084506
commit f5039cc36f
4 changed files with 70 additions and 4 deletions

View File

@@ -443,6 +443,22 @@ class AuthorizationHelperTest extends KernelTestCase
);
}
public function testGetParentRoles()
{
$parentRoles = $this->getAuthorizationHelper()
->getParentRoles(new Role('CHILL_INHERITED_ROLE_1'));
$this->assertContains(
'CHILL_MASTER_ROLE',
\array_map(
function(Role $role) {
return $role->getRole();
},
$parentRoles
),
"Assert that `CHILL_MASTER_ROLE` is a parent of `CHILL_INHERITED_ROLE_1`");
}
}