mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 13:54:59 +00:00
DX: fix cs
This commit is contained in:
@@ -294,23 +294,23 @@ final class PersonControllerUpdateTest extends WebTestCase
|
||||
public function validTextFieldsProvider()
|
||||
{
|
||||
return [
|
||||
['firstName', 'random Value', static fn(Person $person) => $person->getFirstName()],
|
||||
['lastName', 'random Value', static fn(Person $person) => $person->getLastName()],
|
||||
['firstName', 'random Value', static fn (Person $person) => $person->getFirstName()],
|
||||
['lastName', 'random Value', static fn (Person $person) => $person->getLastName()],
|
||||
// reminder: this value is capitalized
|
||||
['placeOfBirth', 'A PLACE', static fn(Person $person) => $person->getPlaceOfBirth()],
|
||||
['birthdate', '1980-12-15', static fn(Person $person) => $person->getBirthdate()->format('Y-m-d')],
|
||||
['placeOfBirth', 'A PLACE', static fn (Person $person) => $person->getPlaceOfBirth()],
|
||||
['birthdate', '1980-12-15', static fn (Person $person) => $person->getBirthdate()->format('Y-m-d')],
|
||||
// TODO test on phonenumber update
|
||||
// ['phonenumber', '+32123456789', static function (Person $person) { return $person->getPhonenumber(); }],
|
||||
['memo', 'jfkdlmq jkfldmsq jkmfdsq', static fn(Person $person) => $person->getMemo()],
|
||||
['countryOfBirth', 'BE', static fn(Person $person) => $person->getCountryOfBirth()->getCountryCode()],
|
||||
['nationality', 'FR', static fn(Person $person) => $person->getNationality()->getCountryCode()],
|
||||
['placeOfBirth', '', static fn(Person $person) => $person->getPlaceOfBirth()],
|
||||
['birthdate', '', static fn(Person $person) => $person->getBirthdate()],
|
||||
['memo', 'jfkdlmq jkfldmsq jkmfdsq', static fn (Person $person) => $person->getMemo()],
|
||||
['countryOfBirth', 'BE', static fn (Person $person) => $person->getCountryOfBirth()->getCountryCode()],
|
||||
['nationality', 'FR', static fn (Person $person) => $person->getNationality()->getCountryCode()],
|
||||
['placeOfBirth', '', static fn (Person $person) => $person->getPlaceOfBirth()],
|
||||
['birthdate', '', static fn (Person $person) => $person->getBirthdate()],
|
||||
//['phonenumber', '', static function (Person $person) { return $person->getPhonenumber(); }],
|
||||
['memo', '', static fn(Person $person) => $person->getMemo()],
|
||||
['countryOfBirth', null, static fn(Person $person) => $person->getCountryOfBirth()],
|
||||
['nationality', null, static fn(Person $person) => $person->getNationality()],
|
||||
['gender', Person::FEMALE_GENDER, static fn(Person $person) => $person->getGender()],
|
||||
['memo', '', static fn (Person $person) => $person->getMemo()],
|
||||
['countryOfBirth', null, static fn (Person $person) => $person->getCountryOfBirth()],
|
||||
['nationality', null, static fn (Person $person) => $person->getNationality()],
|
||||
['gender', Person::FEMALE_GENDER, static fn (Person $person) => $person->getGender()],
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user