From 13c17f5dd454198f3872996c06a90e03dc96e04c Mon Sep 17 00:00:00 2001 From: "J. King" Date: Tue, 28 Feb 2017 14:04:14 -0500 Subject: [PATCH] Small fixes to authorization exception tests --- tests/User/TestAuthorization.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/User/TestAuthorization.php b/tests/User/TestAuthorization.php index f3d90ee2..1ca0c76c 100644 --- a/tests/User/TestAuthorization.php +++ b/tests/User/TestAuthorization.php @@ -254,7 +254,7 @@ class TestAuthorization extends \PHPUnit\Framework\TestCase { $tests = [ 'exists' => [], 'remove' => [], - 'add' => [], + 'add' => [''], 'passwordSet' => [''], 'propertiesGet' => [], 'propertiesSet' => [[]], @@ -278,7 +278,7 @@ class TestAuthorization extends \PHPUnit\Framework\TestCase { protected function checkExceptions(string $user, $tests): array { $err = []; foreach($tests as $func => $args) { - array_unshift($args, $user); + if($func != "list") array_unshift($args, $user); try { call_user_func_array(array($this->data->user, $func), $args); } catch(User\ExceptionAuthz $e) {