TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
QueryHelperTest Class Reference
Inheritance diagram for QueryHelperTest:
UnitTestCase BaseTestCase

Public Member Functions

 stripLogicalOperatorPrefixDataProvider ()
 
 stripLogicalOperatorPrefixRemovesConstraintPrefixes (string $input, string $expectedSql)
 
 parseOrderByDataProvider ()
 
 parseOrderByTest (string $input, array $expectedResult)
 
 parseTableListDataProvider ()
 
 parseTableListTest (string $input, array $expectedResult)
 
 parseGroupByDataProvider ()
 
 parseGroupByTest (string $input, array $expectedResult)
 
 parseJoinDataProvider ()
 
 parseJoinSplitsStatement (string $input, array $expected)
 

Additional Inherited Members

- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Query helper test

Definition at line 24 of file QueryHelperTest.php.

Member Function Documentation

parseGroupByDataProvider ( )

Test cases for parsing ORDER BY SQL fragments

Returns
array

Definition at line 229 of file QueryHelperTest.php.

parseGroupByTest ( string  $input,
array  $expectedResult 
)
Test:
parseGroupByDataProvider
Parameters
string$input
array$expectedResult

Definition at line 269 of file QueryHelperTest.php.

References QueryHelper\parseGroupBy().

parseJoinDataProvider ( )

Test cases for parsing JOIN fragments into table name, alias and conditions

Returns
array

Definition at line 279 of file QueryHelperTest.php.

parseJoinSplitsStatement ( string  $input,
array  $expected 
)
Test:
parseJoinDataProvider
Parameters
string$input
array$expected

Definition at line 347 of file QueryHelperTest.php.

References QueryHelper\parseJoin().

parseOrderByDataProvider ( )

Test cases for parsing ORDER BY SQL fragments

Returns
array

Definition at line 67 of file QueryHelperTest.php.

parseOrderByTest ( string  $input,
array  $expectedResult 
)
Test:
parseOrderByDataProvider
Parameters
string$input
array$expectedResult

Definition at line 143 of file QueryHelperTest.php.

References QueryHelper\parseOrderBy().

parseTableListDataProvider ( )

Test cases for parsing FROM tableList SQL fragments

Returns
array

Definition at line 153 of file QueryHelperTest.php.

parseTableListTest ( string  $input,
array  $expectedResult 
)
Test:
parseTableListDataProvider
Parameters
string$input
array$expectedResult

Definition at line 219 of file QueryHelperTest.php.

References QueryHelper\parseTableList().

stripLogicalOperatorPrefixDataProvider ( )

Test cases for stripping of leading logical operators in where constraints.

Returns
array

Definition at line 31 of file QueryHelperTest.php.

stripLogicalOperatorPrefixRemovesConstraintPrefixes ( string  $input,
string  $expectedSql 
)
Test:
stripLogicalOperatorPrefixDataProvider
Parameters
string$input
string$expectedSql

Definition at line 57 of file QueryHelperTest.php.

References QueryHelper\stripLogicalOperatorPrefix().