chore: upgrade phpunit to 12.5
This commit is contained in:
1 parent
da039d0527
commit
849da8d471
53 files changed
+832
-856
No files matched your search
@@ -22,9 +22,7 @@ use Symfony\Component\HttpFoundation\RequestStack;
|
||||
*/
|
||||
class AbstractFilterHandlerTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider legacyCountries
|
||||
*/
|
||||
#[\PHPUnit\Framework\Attributes\DataProvider('legacyCountries')]
|
||||
public function testALegacyCountryIsTranslatedToItsIsoCode(?string $stored, ?string $expected): void
|
||||
{
|
||||
$this->assertSame($expected, $this->handler()->translate($stored));
|
||||
@@ -67,7 +65,7 @@ class AbstractFilterHandlerTest extends TestCase
|
||||
|
||||
private function handler(): object
|
||||
{
|
||||
return new class($this->createMock(RequestStack::class), $this->createMock(EntityManagerInterface::class)) extends AbstractFilterHandler {
|
||||
return new class($this->createStub(RequestStack::class), $this->createStub(EntityManagerInterface::class)) extends AbstractFilterHandler {
|
||||
protected string $modelClass = AssignmentFilterDto::class;
|
||||
|
||||
public function translate(?string $country): ?string
|
||||
|
||||
@@ -87,6 +87,6 @@ class TeamerFilterHandlerTest extends TestCase
|
||||
$requestStack = new RequestStack();
|
||||
$requestStack->push($request);
|
||||
|
||||
return new TeamerFilterHandler($requestStack, $this->createMock(EntityManagerInterface::class));
|
||||
return new TeamerFilterHandler($requestStack, $this->createStub(EntityManagerInterface::class));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user