mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-19 18:34:38 +02:00
Applied symplify rules to codebase.
This commit is contained in:
parent
2f20d90041
commit
388e847b17
136 changed files with 1370 additions and 789 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue