PHP Class ApiPlatform\Core\Tests\Doctrine\Orm\Filter\SearchFilterTest

Author: Julien Deniau ([email protected])
Author: Vincent CHALAMON ([email protected])
Inheritance: extends Symfony\Bundle\FrameworkBundle\Test\KernelTestCase
Show file Open project: api-platform/core

Protected Properties

Property Type Description
$iriConverter ApiPlatform\Core\Api\IriConverterInterface
$propertyAccessor Symfony\Component\PropertyAccess\PropertyAccessorInterface
$resourceClass string

Public Methods

Method Description
provideApplyTestData ( ) : array Provides test data.
testApply ( $properties, array $filterParameters, array $expected )
testDoubleJoin ( )
testGetDescription ( )
testTripleJoin ( )

Protected Methods

Method Description
setUp ( )

Method Details

provideApplyTestData() public method

Provides 3 parameters: - configuration of filterable properties - filter parameters - expected DQL query and parameter values
public provideApplyTestData ( ) : array
return array

setUp() protected method

protected setUp ( )

testApply() public method

public testApply ( $properties, array $filterParameters, array $expected )
$filterParameters array
$expected array

testDoubleJoin() public method

public testDoubleJoin ( )

testGetDescription() public method

public testGetDescription ( )

testTripleJoin() public method

public testTripleJoin ( )

Property Details

$iriConverter protected property

protected IriConverterInterface,ApiPlatform\Core\Api $iriConverter
return ApiPlatform\Core\Api\IriConverterInterface

$propertyAccessor protected property

protected PropertyAccessorInterface,Symfony\Component\PropertyAccess $propertyAccessor
return Symfony\Component\PropertyAccess\PropertyAccessorInterface

$resourceClass protected property

protected string $resourceClass
return string