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

Public Member Functions

 exprReturnsExpressionBuilderForConnection ()
 
 getTypeDelegatesToConcreteQueryBuilder ()
 
 getStateDelegatesToConcreteQueryBuilder ()
 
 getSQLDelegatesToConcreteQueryBuilder ()
 
 setParameterDelegatesToConcreteQueryBuilder ()
 
 setParametersDelegatesToConcreteQueryBuilder ()
 
 getParametersDelegatesToConcreteQueryBuilder ()
 
 getParameterDelegatesToConcreteQueryBuilder ()
 
 getParameterTypesDelegatesToConcreteQueryBuilder ()
 
 getParameterTypeDelegatesToConcreteQueryBuilder ()
 
 setFirstResultDelegatesToConcreteQueryBuilder ()
 
 getFirstResultDelegatesToConcreteQueryBuilder ()
 
 setMaxResultsDelegatesToConcreteQueryBuilder ()
 
 getMaxResultsDelegatesToConcreteQueryBuilder ()
 
 addDelegatesToConcreteQueryBuilder ()
 
 countBuildsExpressionAndCallsSelect ()
 
 selectQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ()
 
 quoteIdentifiersForSelectDataProvider ()
 
 quoteIdentifiersForSelect ($identifier, $expectedResult)
 
 quoteIdentifiersForSelectWithInvalidAlias ()
 
 selectDoesNotQuoteStarPlaceholder ()
 
 addSelectQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ()
 
 addSelectDoesNotQuoteStarPlaceholder ()
 
 selectLiteralDirectlyDelegatesToConcreteQueryBuilder ()
 
 addSelectLiteralDirectlyDelegatesToConcreteQueryBuilder ()
 
 deleteQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 updateQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 insertQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 fromQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 joinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ()
 
 innerJoinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ()
 
 leftJoinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ()
 
 rightJoinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ()
 
 setQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 setWithoutNamedParameterQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 whereDelegatesToConcreteQueryBuilder ()
 
 andWhereDelegatesToConcreteQueryBuilder ()
 
 orWhereDelegatesToConcreteQueryBuilder ()
 
 groupByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 addGroupByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 setValueQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 setValueWithoudNamedParameterQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 valuesQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ()
 
 valuesWithoutNamedParametersQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ()
 
 havingDelegatesToConcreteQueryBuilder ()
 
 andHavingDelegatesToConcreteQueryBuilder ()
 
 orHavingDelegatesToConcreteQueryBuilder ()
 
 orderByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 addOrderByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 getQueryPartDelegatesToConcreteQueryBuilder ()
 
 getQueryPartsDelegatesToConcreteQueryBuilder ()
 
 resetQueryPartsDelegatesToConcreteQueryBuilder ()
 
 resetQueryPartDelegatesToConcreteQueryBuilder ()
 
 createNamedParameterDelegatesToConcreteQueryBuilder ()
 
 createPositionalParameterDelegatesToConcreteQueryBuilder ()
 
 queryRestrictionsAreAddedForSelectOnExecute ()
 
 queryRestrictionsAreAddedForCountOnExecute ()
 
 queryRestrictionsAreReevaluatedOnSettingsChangeForGetSQL ()
 
 queryRestrictionsAreReevaluatedOnSettingsChangeForExecute ()
 

Protected Member Functions

 setUp ()
 
- 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

 $connection
 
 $platform
 
 $subject
 
 $concreteQueryBuilder
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Definition at line 27 of file QueryBuilderTest.php.

Member Function Documentation

addDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 244 of file QueryBuilderTest.php.

addGroupByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 669 of file QueryBuilderTest.php.

addOrderByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 804 of file QueryBuilderTest.php.

addSelectDoesNotQuoteStarPlaceholder ( )
Test:

Definition at line 392 of file QueryBuilderTest.php.

addSelectLiteralDirectlyDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 423 of file QueryBuilderTest.php.

addSelectQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 374 of file QueryBuilderTest.php.

andHavingDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 765 of file QueryBuilderTest.php.

andWhereDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 630 of file QueryBuilderTest.php.

countBuildsExpressionAndCallsSelect ( )
Test:

Definition at line 256 of file QueryBuilderTest.php.

createNamedParameterDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 867 of file QueryBuilderTest.php.

createPositionalParameterDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 879 of file QueryBuilderTest.php.

deleteQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:
Todo:
: Test with alias

Definition at line 438 of file QueryBuilderTest.php.

exprReturnsExpressionBuilderForConnection ( )
Test:

Definition at line 74 of file QueryBuilderTest.php.

References GeneralUtility\makeInstance().

fromQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:
Todo:
: Test with alias

Definition at line 485 of file QueryBuilderTest.php.

getFirstResultDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 208 of file QueryBuilderTest.php.

getMaxResultsDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 232 of file QueryBuilderTest.php.

getParameterDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 160 of file QueryBuilderTest.php.

getParametersDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 148 of file QueryBuilderTest.php.

getParameterTypeDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 184 of file QueryBuilderTest.php.

References Connection\PARAM_STR.

getParameterTypesDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 172 of file QueryBuilderTest.php.

getQueryPartDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 819 of file QueryBuilderTest.php.

getQueryPartsDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 831 of file QueryBuilderTest.php.

getSQLDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 110 of file QueryBuilderTest.php.

getStateDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 98 of file QueryBuilderTest.php.

getTypeDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 86 of file QueryBuilderTest.php.

groupByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 654 of file QueryBuilderTest.php.

havingDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 753 of file QueryBuilderTest.php.

innerJoinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 521 of file QueryBuilderTest.php.

insertQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 469 of file QueryBuilderTest.php.

joinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 500 of file QueryBuilderTest.php.

leftJoinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 542 of file QueryBuilderTest.php.

orderByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 789 of file QueryBuilderTest.php.

orHavingDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 777 of file QueryBuilderTest.php.

orWhereDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 642 of file QueryBuilderTest.php.

queryRestrictionsAreAddedForCountOnExecute ( )
queryRestrictionsAreAddedForSelectOnExecute ( )
queryRestrictionsAreReevaluatedOnSettingsChangeForExecute ( )
queryRestrictionsAreReevaluatedOnSettingsChangeForGetSQL ( )
quoteIdentifiersForSelect (   $identifier,
  $expectedResult 
)
Test:
quoteIdentifiersForSelectDataProvider
Parameters
string$identifier
string$expectedResult

Definition at line 323 of file QueryBuilderTest.php.

References QueryBuilderTest\$platform.

quoteIdentifiersForSelectDataProvider ( )

Definition at line 283 of file QueryBuilderTest.php.

quoteIdentifiersForSelectWithInvalidAlias ( )
Test:

Definition at line 339 of file QueryBuilderTest.php.

References QueryBuilderTest\$platform.

resetQueryPartDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 855 of file QueryBuilderTest.php.

resetQueryPartsDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 843 of file QueryBuilderTest.php.

rightJoinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 563 of file QueryBuilderTest.php.

selectDoesNotQuoteStarPlaceholder ( )
Test:

Definition at line 357 of file QueryBuilderTest.php.

selectLiteralDirectlyDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 409 of file QueryBuilderTest.php.

selectQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 268 of file QueryBuilderTest.php.

setFirstResultDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 196 of file QueryBuilderTest.php.

setMaxResultsDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 220 of file QueryBuilderTest.php.

setParameterDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 124 of file QueryBuilderTest.php.

setParametersDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 136 of file QueryBuilderTest.php.

setQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 584 of file QueryBuilderTest.php.

setUp ( )
protected

Create a new database connection mock object for every test.

Returns
void

Definition at line 54 of file QueryBuilderTest.php.

References GeneralUtility\makeInstance().

setValueQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 684 of file QueryBuilderTest.php.

setValueWithoudNamedParameterQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 702 of file QueryBuilderTest.php.

setWithoutNamedParameterQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 602 of file QueryBuilderTest.php.

updateQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:
Todo:
: Test with alias

Definition at line 454 of file QueryBuilderTest.php.

valuesQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 717 of file QueryBuilderTest.php.

valuesWithoutNamedParametersQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 738 of file QueryBuilderTest.php.

whereDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 618 of file QueryBuilderTest.php.

Member Data Documentation

$connection
protected

Definition at line 32 of file QueryBuilderTest.php.