From b0bf7647ce8f29c6b8ddace6400603ab17142c7c Mon Sep 17 00:00:00 2001 From: Marco Date: Sat, 10 Mar 2018 02:56:32 +0100 Subject: [PATCH] Add tests for method 'getRoles' from class 'Auth' --- tests/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/index.php b/tests/index.php index 7e6c5e1..a3df777 100644 --- a/tests/index.php +++ b/tests/index.php @@ -631,6 +631,9 @@ function showDebugData(\Delight\Auth\Auth $auth, $result) { echo 'Roles (developer *and* manager)' . "\t\t"; \var_dump($auth->hasAllRoles(\Delight\Auth\Role::DEVELOPER, \Delight\Auth\Role::MANAGER)); + echo 'Roles' . "\t\t\t\t\t"; + echo \json_encode($auth->getRoles()) . "\n"; + echo "\n"; echo '$auth->isRemembered()' . "\t\t\t";