PHP Class OpenSkill\Datatable\Queries\Parser\Datatable19QueryParserTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: openskill/datatable

Méthodes publiques

Méthode Description
testCanParse ( )
testCorrectParsing ( ) Will test if the query parser can parse the request params for datatable 1.9 http://legacy.datatables.net/usage/server-side
testEmptySearch ( ) Will test that an empty search will not trigger a search.
testSortingOrder ( ) Will test that the sorting order from the query can be used to sort the data in the correct order.
testSortingOrder2 ( ) Will test that the sorting order from the query can be used to sort the data in the correct order.
testSortingOrder3 ( ) Will test that the sorting order without all the columns in the configuration correctly throws an exception
testWrongParsing ( ) Will test if the query parser will ignore search and order advise if the columns forbid them

Méthodes protégées

Méthode Description
setUp ( ) Will set up a the parser to test

Private Methods

Méthode Description
sortingOrderGeneration ( boolean $includeSecondColumnInConfiguration = true ) The real testSortingOrder2 & testSortingOrder3 test

Method Details

setUp() protected méthode

Will set up a the parser to test
protected setUp ( )

testCanParse() public méthode

public testCanParse ( )

testCorrectParsing() public méthode

Will test if the query parser can parse the request params for datatable 1.9 http://legacy.datatables.net/usage/server-side
public testCorrectParsing ( )

testEmptySearch() public méthode

Will test that an empty search will not trigger a search.
public testEmptySearch ( )

testSortingOrder() public méthode

Will test that the sorting order from the query can be used to sort the data in the correct order.
public testSortingOrder ( )

testSortingOrder2() public méthode

Will test that the sorting order from the query can be used to sort the data in the correct order.
public testSortingOrder2 ( )

testSortingOrder3() public méthode

Will test that the sorting order without all the columns in the configuration correctly throws an exception
public testSortingOrder3 ( )

testWrongParsing() public méthode

Will test if the query parser will ignore search and order advise if the columns forbid them
public testWrongParsing ( )