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

Author: Théo FIDRY ([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
$resourceClass string

Public Methods

Method Description
provideApplyTestData ( ) : array Provides test data.
testApply ( string $orderParameterName, $properties, array $filterParameters, string $expected )
testGetDescription ( )
testGetDescriptionDefaultFields ( )

Protected Methods

Method Description
setUp ( )

Method Details

provideApplyTestData() public method

Provides 4 parameters: - order parameter name - configuration of filterable properties - filter parameters - expected DQL query
public provideApplyTestData ( ) : array
return array

setUp() protected method

protected setUp ( )

testApply() public method

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

testGetDescription() public method

public testGetDescription ( )

testGetDescriptionDefaultFields() public method

Property Details

$resourceClass protected property

protected string $resourceClass
return string