fix ProphecyTrait in AbstractFilter to use it with each filter

This commit is contained in:
2022-07-27 12:11:51 +02:00
parent 3dabd031f4
commit 8bbca12487
2 changed files with 6 additions and 5 deletions

View File

@@ -14,11 +14,9 @@ class EmergencyFilterTest extends AbstractFilterTest
self::bootKernel();
// add a fake request with a default locale (used in translatable string)
$prophet = new \Prophecy\Prophet();
$request = $prophet->prophesize();
$request = $this->prophesize();
$request->willExtend(\Symfony\Component\HttpFoundation\Request::class);
$request->getLocale()->willReturn('fr');
$this->filter = self::$container->get('chill.person.export.filter_emergency');