diff --git a/tests/index.php b/tests/index.php index 5ee90a4..7e6c5e1 100644 --- a/tests/index.php +++ b/tests/index.php @@ -923,11 +923,9 @@ function showConfirmEmailForm() { } function createRolesOptions() { - $roleReflection = new ReflectionClass(\Delight\Auth\Role::class); - $out = ''; - foreach ($roleReflection->getConstants() as $roleName => $roleValue) { + foreach (\Delight\Auth\Role::getMap() as $roleValue => $roleName) { $out .= ''; }