PHP Class OpenSkill\Datatable\Queries\Parser\Datatable19QueryParserTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: openskill/datatable

Public Methods

Method 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

Protected Methods

Method Description
setUp ( ) Will set up a the parser to test

Private Methods

Method Description
sortingOrderGeneration ( boolean $includeSecondColumnInConfiguration = true ) The real testSortingOrder2 & testSortingOrder3 test

Method Details

setUp() protected method

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

testCanParse() public method

public testCanParse ( )

testCorrectParsing() public method

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 method

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

testSortingOrder() public method

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

testSortingOrder2() public method

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

testSortingOrder3() public method

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

testWrongParsing() public method

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