Skip to content

Commit

Permalink
TASK: Use PHP attributes in functional test class (#10)
Browse files Browse the repository at this point in the history
Related: #9

Co-authored-by: Daniel Gohlke <[email protected]>
  • Loading branch information
2 people authored and justusmoroni committed Mar 20, 2024
1 parent 193ca35 commit c530b89
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Tests/Functional/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
*/

use Codappix\Typo3PhpDatasets\TestingFramework;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;
use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest;
use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;

Expand Down Expand Up @@ -133,11 +135,8 @@ public static function imageScalingValuesDataProvider(): iterable
];
}

/**
* @test
*
* @dataProvider imageScalingValuesDataProvider
*/
#[Test]
#[DataProvider(methodName: 'imageScalingValuesDataProvider')]
public function imageIsScaledCorrectly(string $phpDataSet, array $expectedValues): void
{
$this->importPHPDataSet(__DIR__ . '/../Fixtures/container_example/Test/Fixtures/' . $phpDataSet);
Expand Down

0 comments on commit c530b89

Please sign in to comment.