mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-02 09:14:48 +02:00
Applied rector to test files
This commit is contained in:
parent
7ee01d9a05
commit
98dc553938
46 changed files with 42 additions and 102 deletions
|
@ -27,11 +27,8 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|||
|
||||
class TestPermissionHolder implements HasPermissionsInterface
|
||||
{
|
||||
private PermissionData $perm_data;
|
||||
|
||||
public function __construct(PermissionData $perm_data)
|
||||
public function __construct(private readonly PermissionData $perm_data)
|
||||
{
|
||||
$this->perm_data = $perm_data;
|
||||
}
|
||||
|
||||
public function getPermissions(): PermissionData
|
||||
|
@ -49,7 +46,6 @@ class PermissionSchemaUpdaterTest extends WebTestCase
|
|||
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
self::bootKernel();
|
||||
|
||||
$this->service = self::getContainer()->get(PermissionSchemaUpdater::class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue