upgrade phpunit: make data provider static

This commit is contained in:
2024-02-14 12:28:14 +01:00
parent d5115b3718
commit f251e6f100
57 changed files with 142 additions and 121 deletions

View File

@@ -32,7 +32,7 @@ final class AddressControllerTest extends \Symfony\Bundle\FrameworkBundle\Test\W
self::ensureKernelShutdown();
}
public function generateAddressIds(): iterable
public static function generateAddressIds(): iterable
{
self::bootKernel();
$em = self::getContainer()->get(EntityManagerInterface::class);

View File

@@ -25,7 +25,7 @@ final class AddressReferenceApiControllerTest extends WebTestCase
{
use PrepareClientTrait;
public function provideData()
public static function provideData()
{
self::bootKernel();
/** @var EntityManagerInterface $em */

View File

@@ -24,7 +24,7 @@ final class SearchApiControllerTest extends WebTestCase
{
use PrepareClientTrait;
public function generateSearchData()
public static function generateSearchData()
{
yield ['per', ['person', 'thirdparty']];