replace PHPUnit annotations with attributes (#5608)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user