fix callback for comparing birthdate in test

This commit is contained in:
Julien Fastré 2021-06-08 19:44:31 +00:00
parent c9da72fa0d
commit e91596ae12

View File

@ -267,7 +267,7 @@ class PersonControllerUpdateTest extends WebTestCase
['countryOfBirth', 'BE', function(Person $person) { return $person->getCountryOfBirth()->getCountryCode(); }],
['nationality', 'FR', function(Person $person) { return $person->getNationality()->getCountryCode(); }],
['placeOfBirth', '', function(Person $person) { return $person->getPlaceOfBirth(); }],
['birthdate', '', function(Person $person) { return $person->getBirthdate(); }],
['birthdate', '', function(Person $person) { return $person->getBirthdate()->format('Y-m-d'); }],
['phonenumber', '', function(Person $person) { return $person->getPhonenumber(); }],
['memo', '', function(Person $person) { return $person->getMemo(); }],
['countryOfBirth', NULL, function(Person $person) { return $person->getCountryOfBirth(); }],