1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Small fixes to authorization exception tests

This commit is contained in:
J. King 2017-02-28 14:04:14 -05:00
parent 447fec993f
commit 13c17f5dd4

View file

@ -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) {