replace PHPUnit annotations with attributes (#5608)

This commit is contained in:
Kevin Papst
2025-08-11 18:57:42 +02:00
committed by GitHub
parent 04331420ae
commit 24778d3ffb
599 changed files with 1778 additions and 2313 deletions

View File

@@ -17,11 +17,12 @@ use App\Ldap\LdapManager;
use App\Tests\Configuration\TestConfigLoader;
use App\Tests\Mocks\Security\RoleServiceFactory;
use App\Tests\Mocks\SystemConfigurationFactory;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Ldap\LdapManager
*/
#[CoversClass(LdapManager::class)]
class LdapManagerTest extends TestCase
{
protected function getLdapManager(LdapDriver $driver, $roleConfig = null)
@@ -388,9 +389,7 @@ class LdapManagerTest extends TestCase
];
}
/**
* @dataProvider getValidConfigsTestData
*/
#[DataProvider('getValidConfigsTestData')]
public function testUpdateUserOnValidResultWithRolesResult(array $expectedUsers, array $groupConfig, string $expectedGroupQuery): void
{
$expected = [
@@ -583,9 +582,7 @@ class LdapManagerTest extends TestCase
$user = $sut->hydrate($ldapEntry);
}
/**
* @group legacy
*/
#[Group('legacy')]
public function testHydrateWithDepercatedSetter(): void
{
$ldapConfig = [