From 1433af8e95024bee5ffa766cd57e5e842bdabd72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 8 Jun 2021 21:57:06 +0200 Subject: [PATCH] fix format for birthdate in test --- .../Tests/Controller/PersonControllerUpdateTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php index fb9300630..ffdd65f35 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php @@ -261,13 +261,13 @@ class PersonControllerUpdateTest extends WebTestCase ['firstName', 'random Value', function(Person $person) { return $person->getFirstName(); } ], ['lastName' , 'random Value', function(Person $person) { return $person->getLastName(); } ], ['placeOfBirth', 'none place', function(Person $person) { return $person->getPlaceOfBirth(); }], - ['birthdate', '1980-12-15', function(Person $person) { return $person->getBirthdate()->format('d-m-Y'); }], + ['birthdate', '1980-12-15', function(Person $person) { return $person->getBirthdate()->format('Y-m-d'); }], ['phonenumber', '+32123456789', function(Person $person) { return $person->getPhonenumber(); }], ['memo', 'jfkdlmq jkfldmsq jkmfdsq', function(Person $person) { return $person->getMemo(); }], ['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()->format('Y-m-d'); }], + ['birthdate', '', function(Person $person) { return $person->getBirthdate(); }], ['phonenumber', '', function(Person $person) { return $person->getPhonenumber(); }], ['memo', '', function(Person $person) { return $person->getMemo(); }], ['countryOfBirth', NULL, function(Person $person) { return $person->getCountryOfBirth(); }],