mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 18:14:59 +00:00
upgrade phpunit: make data provider static
This commit is contained in:
@@ -120,7 +120,7 @@ class ConflictTest extends WebTestCase
|
||||
self::assertResponseStatusCodeSame(409);
|
||||
}
|
||||
|
||||
public function generateAccompanyingPeriodWork(): iterable
|
||||
public static function generateAccompanyingPeriodWork(): iterable
|
||||
{
|
||||
self::bootKernel();
|
||||
$em = self::getContainer()->get(EntityManagerInterface::class);
|
||||
|
@@ -48,7 +48,7 @@ final class AccompanyingCourseApiControllerTest extends WebTestCase
|
||||
self::ensureKernelShutdown();
|
||||
}
|
||||
|
||||
public function dataGenerateNewAccompanyingCourse()
|
||||
public static function dataGenerateNewAccompanyingCourse()
|
||||
{
|
||||
self::bootKernel();
|
||||
$em = self::getContainer()->get(EntityManagerInterface::class);
|
||||
@@ -85,7 +85,7 @@ final class AccompanyingCourseApiControllerTest extends WebTestCase
|
||||
self::ensureKernelShutdown();
|
||||
}
|
||||
|
||||
public function dataGenerateRandomAccompanyingCourse()
|
||||
public static function dataGenerateRandomAccompanyingCourse()
|
||||
{
|
||||
// note about max result for person query, and maxGenerated:
|
||||
//
|
||||
@@ -152,7 +152,7 @@ final class AccompanyingCourseApiControllerTest extends WebTestCase
|
||||
self::ensureKernelShutdown();
|
||||
}
|
||||
|
||||
public function dataGenerateRandomAccompanyingCourseWithSocialIssue()
|
||||
public static function dataGenerateRandomAccompanyingCourseWithSocialIssue()
|
||||
{
|
||||
// note about max result for person query, and maxGenerated:
|
||||
//
|
||||
@@ -224,7 +224,7 @@ final class AccompanyingCourseApiControllerTest extends WebTestCase
|
||||
self::ensureKernelShutdown();
|
||||
}
|
||||
|
||||
public function dataGenerateRandomRequestorValidData(): \Iterator
|
||||
public static function dataGenerateRandomRequestorValidData(): \Iterator
|
||||
{
|
||||
$dataLength = 2;
|
||||
$maxResults = 100;
|
||||
|
@@ -41,7 +41,7 @@ final class AccompanyingCourseControllerTest extends WebTestCase
|
||||
self::ensureKernelShutdown();
|
||||
}
|
||||
|
||||
public function dataGenerateRandomUsers(): \Iterator
|
||||
public static function dataGenerateRandomUsers(): \Iterator
|
||||
{
|
||||
self::bootKernel();
|
||||
$em = self::getContainer()->get(EntityManagerInterface::class);
|
||||
|
@@ -92,7 +92,7 @@ final class HouseholdApiControllerTest extends WebTestCase
|
||||
self::ensureKernelShutdown();
|
||||
}
|
||||
|
||||
public function generateHouseholdId()
|
||||
public static function generateHouseholdId()
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
@@ -124,7 +124,7 @@ final class HouseholdApiControllerTest extends WebTestCase
|
||||
self::ensureKernelShutdown();
|
||||
}
|
||||
|
||||
public function generatePersonId()
|
||||
public static function generatePersonId()
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
|
@@ -39,7 +39,7 @@ final class HouseholdControllerTest extends WebTestCase
|
||||
self::ensureKernelShutdown();
|
||||
}
|
||||
|
||||
public function generateValidHouseholdIds()
|
||||
public static function generateValidHouseholdIds()
|
||||
{
|
||||
self::bootKernel();
|
||||
$em = self::getContainer()->get(EntityManagerInterface::class);
|
||||
|
@@ -30,7 +30,7 @@ final class HouseholdMemberControllerTest extends WebTestCase
|
||||
{
|
||||
use PrepareClientTrait;
|
||||
|
||||
public function provideValidDataEditMember(): \Iterator
|
||||
public static function provideValidDataEditMember(): \Iterator
|
||||
{
|
||||
self::bootKernel();
|
||||
$em = self::getContainer()->get(EntityManagerInterface::class);
|
||||
@@ -48,7 +48,7 @@ final class HouseholdMemberControllerTest extends WebTestCase
|
||||
yield [\array_pop($membershipIds)['id']];
|
||||
}
|
||||
|
||||
public function provideValidDataMove(): \Iterator
|
||||
public static function provideValidDataMove(): \Iterator
|
||||
{
|
||||
self::bootKernel();
|
||||
$em = self::getContainer()->get(EntityManagerInterface::class);
|
||||
|
@@ -26,7 +26,7 @@ final class PersonApiControllerTest extends WebTestCase
|
||||
{
|
||||
use PrepareClientTrait;
|
||||
|
||||
public function dataGetPersonFromCenterA(): \Iterator
|
||||
public static function dataGetPersonFromCenterA(): \Iterator
|
||||
{
|
||||
self::bootKernel();
|
||||
$em = self::getContainer()->get(EntityManagerInterface::class);
|
||||
@@ -49,7 +49,7 @@ final class PersonApiControllerTest extends WebTestCase
|
||||
yield \array_pop($personIds);
|
||||
}
|
||||
|
||||
public function dataGetPersonFromCenterB(): \Iterator
|
||||
public static function dataGetPersonFromCenterB(): \Iterator
|
||||
{
|
||||
self::bootKernel();
|
||||
$em = self::getContainer()->get(EntityManagerInterface::class);
|
||||
|
@@ -188,7 +188,7 @@ final class PersonControllerUpdateWithHiddenFieldsTest extends WebTestCase
|
||||
*
|
||||
* @return mixed[]
|
||||
*/
|
||||
public function validTextFieldsProvider()
|
||||
public static function validTextFieldsProvider()
|
||||
{
|
||||
return [
|
||||
['firstName', 'random Value', static fn (Person $person) => $person->getFirstName()],
|
||||
|
@@ -23,7 +23,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
*/
|
||||
final class PersonDuplicateControllerViewTest extends WebTestCase
|
||||
{
|
||||
public function providePersonData(): iterable
|
||||
public static function providePersonData(): iterable
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
|
@@ -40,7 +40,7 @@ final class RelationshipApiControllerTest extends WebTestCase
|
||||
self::ensureKernelShutdown();
|
||||
}
|
||||
|
||||
public function personProvider(): array
|
||||
public static function personProvider(): array
|
||||
{
|
||||
self::bootKernel();
|
||||
$em = self::getContainer()->get(EntityManagerInterface::class);
|
||||
|
Reference in New Issue
Block a user