Fix tests with capitalization

This commit is contained in:
2021-10-14 14:01:18 +00:00
parent a75f4015c7
commit 4f940b44ad
6 changed files with 66 additions and 65 deletions

View File

@@ -92,15 +92,19 @@ class LoadReports extends AbstractFixture implements OrderedFixtureInterface, Co
->findOneBy(array('firstName' => 'Charline', 'lastName' => 'DEPARDIEU'))
;
$report = (new Report())
if (NULL !== $charline) {
$report = (new Report())
->setPerson($charline)
->setCFGroup($this->getReference('cf_group_report_logement'))
->setDate(new \DateTime('2015-01-05'))
->setScope($this->getReference('scope_social'))
;
$this->fillReport($report);
;
$this->fillReport($report);
$manager->persist($report);
$manager->persist($report);
} else {
print("WARNING: Charline DEPARDIEU not found in database");
}
}
/**