Applied symplify rules to codebase.

This commit is contained in:
Jan Böhmer 2020-01-05 22:49:00 +01:00
parent 2f20d90041
commit 388e847b17
136 changed files with 1370 additions and 789 deletions

View file

@ -28,19 +28,20 @@ use App\Entity\UserSystem\Group;
use App\Entity\UserSystem\PermissionsEmbed;
use App\Entity\UserSystem\User;
use App\Services\PermissionResolver;
use InvalidArgumentException;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class PermissionResolverTest extends WebTestCase
{
protected $user_withoutGroup;
protected $user;
protected $group;
/**
* @var PermissionResolver
*/
protected $service;
protected $user;
protected $user_withoutGroup;
protected $group;
protected function setUp(): void
{
parent::setUp(); // TODO: Change the autogenerated stub
@ -132,7 +133,7 @@ class PermissionResolverTest extends WebTestCase
public function testInvalidListOperationsForPermission(): void
{
$this->expectException(\InvalidArgumentException::class);
$this->expectException(InvalidArgumentException::class);
//Must throw an exception
$this->service->listOperationsForPermission('invalid');
}