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

@@ -20,11 +20,11 @@ use App\Tests\DataFixtures\TagFixtures;
use App\Tests\DataFixtures\TimesheetFixtures;
use App\Tests\Mocks\TimesheetTestMetaFieldSubscriberMock;
use App\Timesheet\DateTimeFactory;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use Symfony\Component\EventDispatcher\EventDispatcher;
/**
* @group integration
*/
#[Group('integration')]
class TimesheetControllerTest extends AbstractControllerBaseTestCase
{
public function testIsSecure(): void
@@ -225,9 +225,7 @@ class TimesheetControllerTest extends AbstractControllerBaseTestCase
self::assertNull($timesheet->getFixedRate());
}
/**
* @dataProvider getTestDataForDurationValues
*/
#[DataProvider('getTestDataForDurationValues')]
public function testCreateActionWithDurationValues($beginDate, $beginTime, $end, $duration, $expectedDuration, $expectedEnd): void
{
$client = $this->getClientForAuthenticatedUser();
@@ -322,9 +320,7 @@ class TimesheetControllerTest extends AbstractControllerBaseTestCase
];
}
/**
* @dataProvider getTrackingModeTestData
*/
#[DataProvider('getTrackingModeTestData')]
public function testCreateActionWithTrackingModeHasFieldsForUser(string $trackingMode, string $user, bool $showBeginTime, bool $showEndTime): void
{
$client = $this->getClientForAuthenticatedUser($user);