add ListPerson

Add / complete list of person.

Some SQL function are added to allow to get the last address at a given date.
This commit is contained in:
2017-01-31 12:18:07 +01:00
parent 045119d61f
commit 25cad2f11d
21 changed files with 747 additions and 270 deletions

View File

@@ -44,6 +44,15 @@ class ListPersonTest extends AbstractExportTest
$container = self::$kernel->getContainer();
$this->export = $container->get('chill.person.export.list_person');
// add a fake request with a default locale (used in translatable string)
$prophet = new \Prophecy\Prophet;
$request = $prophet->prophesize();
$request->willExtend(\Symfony\Component\HttpFoundation\Request::class);
$request->getLocale()->willReturn('fr');
$container->get('request_stack')
->push($request->reveal());
}
/**
@@ -62,7 +71,10 @@ class ListPersonTest extends AbstractExportTest
array('fields' => ['id', 'birthdate', 'gender', 'memo', 'email', 'phonenumber']),
array('fields' => ['firstName', 'lastName', 'phonenumber']),
array('fields' => ['id', 'nationality']),
array('fields' => ['id', 'countryOfBirth'])
array('fields' => ['id', 'countryOfBirth']),
array('fields' => ['id', 'address_street_address_1',
'address_street_address_2', 'address_valid_from', 'address_postcode_label',
'address_postcode_code', 'address_country_name', 'address_country_code'])
);
}