Skip to content

Commit 850aa53

Browse files
author
Amrouche Hamza
committed
add more tests
1 parent 0372073 commit 850aa53

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/Bridge/Doctrine/Orm/Filter/SearchFilterTest.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,23 @@ public function testRequestJoinLeft()
427427
$this->doTestJoinLeft(true);
428428
}
429429

430+
/**
431+
* @group legacy
432+
* @expectedDeprecation Not injecting ItemIdentifiersExtractor is deprecated since API Platform 2.1 and will not be possible anymore in API Platform 3.0.
433+
*/
434+
public function testNotPassingIdentifiersExtractor()
435+
{
436+
$requestStack = new RequestStack();
437+
$requestStack->push(Request::create('/api/dummies', 'GET', []));
438+
439+
$iriConverterProphecy = $this->prophesize(IriConverterInterface::class);
440+
441+
$iriConverter = $iriConverterProphecy->reveal();
442+
$propertyAccessor = self::$kernel->getContainer()->get('test.property_accessor');
443+
444+
return new SearchFilter($this->managerRegistry, $requestStack, $iriConverter, $propertyAccessor, null, null, null);
445+
}
446+
430447
private function doTestJoinLeft(bool $request)
431448
{
432449
$filters = ['relatedDummy.symfony' => 'foo', 'relatedDummy.thirdLevel.level' => '3'];

0 commit comments

Comments
 (0)