mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-03 22:57:27 +02:00
Add tests for method 'getRoles' from class 'Auth'
This commit is contained in:
@@ -631,6 +631,9 @@ function showDebugData(\Delight\Auth\Auth $auth, $result) {
|
|||||||
echo 'Roles (developer *and* manager)' . "\t\t";
|
echo 'Roles (developer *and* manager)' . "\t\t";
|
||||||
\var_dump($auth->hasAllRoles(\Delight\Auth\Role::DEVELOPER, \Delight\Auth\Role::MANAGER));
|
\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 "\n";
|
||||||
|
|
||||||
echo '$auth->isRemembered()' . "\t\t\t";
|
echo '$auth->isRemembered()' . "\t\t\t";
|
||||||
|
Reference in New Issue
Block a user