PHP Class ColumnSortableTraitTest

Inheritance: extends Orchestra\Testbench\TestCase
Show file Open project: kyslik/column-sortable

Public Methods

Method Description
setUp ( ) Method setUp() runs before each test.
testFormatToSortParameters ( )
testParseSortParameters ( )
testSortableAs ( )
testSortableOverridingQueryOrderBuilder ( )
testSortableQueryJoinBuilder ( )
testSortableQueryJoinBuilderThrowsExeption ( )
testSortableWithDefaultAndWithoutRequestParameters ( )
testSortableWithDefaultUsesConfig ( ) This test might be useless, because testFormatToSortParameters() does same
testSortableWithRequestParameters ( )
testSortableWithoutDefaultAndRequestParameters ( )

Protected Methods

Method Description
invokeMethod ( &$object, string $methodName, array $parameters = [] ) : mixed Call protected/private method of a class.

Method Details

invokeMethod() protected method

Call protected/private method of a class.
protected invokeMethod ( &$object, string $methodName, array $parameters = [] ) : mixed
$methodName string Method name to call
$parameters array Array of parameters to pass into method.
return mixed Method return.

setUp() public method

Method setUp() runs before each test.
public setUp ( )

testFormatToSortParameters() public method

testParseSortParameters() public method

testSortableAs() public method

public testSortableAs ( )

testSortableOverridingQueryOrderBuilder() public method

testSortableQueryJoinBuilder() public method

testSortableQueryJoinBuilderThrowsExeption() public method

testSortableWithDefaultAndWithoutRequestParameters() public method

testSortableWithDefaultUsesConfig() public method

This test might be useless, because testFormatToSortParameters() does same

testSortableWithRequestParameters() public method

testSortableWithoutDefaultAndRequestParameters() public method