From d3594898ccee12fad1d90bc58b452d503fad840a Mon Sep 17 00:00:00 2001 From: Marco Date: Sat, 10 Mar 2018 02:03:25 +0100 Subject: [PATCH] Make use of new method 'getMap' from class 'Role' in 'tests' --- tests/index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 .= ''; }