mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-29 22:30:01 +02:00
Migrated phpunit annotations to attributes
This commit is contained in:
parent
f1d34bbc24
commit
dc480f755c
50 changed files with 171 additions and 246 deletions
|
@ -22,6 +22,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\Services\UserSystem;
|
||||
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use App\Entity\UserSystem\Group;
|
||||
use App\Entity\UserSystem\PermissionData;
|
||||
use App\Entity\UserSystem\User;
|
||||
|
@ -101,9 +102,7 @@ class PermissionManagerTest extends WebTestCase
|
|||
yield ['tools'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getPermissionNames
|
||||
*/
|
||||
#[DataProvider('getPermissionNames')]
|
||||
public function testListOperationsForPermission($perm_name): void
|
||||
{
|
||||
$arr = $this->service->listOperationsForPermission($perm_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue