‪TYPO3CMS  11.5
TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest:

Public Member Functions

 exprReturnsExpressionBuilderForConnection ()
 
 getTypeDelegatesToConcreteQueryBuilder ()
 
 getStateDelegatesToConcreteQueryBuilder ()
 
 getSQLDelegatesToConcreteQueryBuilder ()
 
 setParameterDelegatesToConcreteQueryBuilder ()
 
 setParametersDelegatesToConcreteQueryBuilder ()
 
 getParametersDelegatesToConcreteQueryBuilder ()
 
 getParameterDelegatesToConcreteQueryBuilder ()
 
 getParameterTypesDelegatesToConcreteQueryBuilder ()
 
 getParameterTypeDelegatesToConcreteQueryBuilder ()
 
 setFirstResultDelegatesToConcreteQueryBuilder ()
 
 getFirstResultDelegatesToConcreteQueryBuilder ()
 
 setMaxResultsDelegatesToConcreteQueryBuilder ()
 
 getMaxResultsDelegatesToConcreteQueryBuilder ()
 
 addDelegatesToConcreteQueryBuilder ()
 
 countBuildsExpressionAndCallsSelect ()
 
 selectQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ()
 
array 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 ()
 
 setValueWithoutNamedParameterQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 valuesQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ()
 
 valuesWithoutNamedParametersQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ()
 
 havingDelegatesToConcreteQueryBuilder ()
 
 andHavingDelegatesToConcreteQueryBuilder ()
 
 orHavingDelegatesToConcreteQueryBuilder ()
 
 orderByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 addOrderByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ()
 
 getQueryPartDelegatesToConcreteQueryBuilder ()
 
 getQueryPartsDelegatesToConcreteQueryBuilder ()
 
 resetQueryPartsDelegatesToConcreteQueryBuilder ()
 
 resetQueryPartDelegatesToConcreteQueryBuilder ()
 
 createNamedParameterDelegatesToConcreteQueryBuilder ()
 
 createPositionalParameterDelegatesToConcreteQueryBuilder ()
 
 queryRestrictionsAreAddedForSelectOnExecuteQuery ()
 
 queryRestrictionsAreAddedForCountOnExecuteQuery ()
 
 queryRestrictionsAreReevaluatedOnSettingsChangeForGetSQL ()
 
 queryRestrictionsAreReevaluatedOnSettingsChangeForExecuteQuery ()
 
 getQueriedTablesReturnsSameTableTwiceForInnerJoin ()
 
array unquoteSingleIdentifierUnquotesCorrectlyOnDifferentPlatformsDataProvider ()
 
 unquoteSingleIdentifierUnquotesCorrectlyOnDifferentPlatforms (string $platform, string $quoteChar, string $input, string $expected)
 
 cloningQueryBuilderClonesConcreteQueryBuilder ()
 
 changingClonedQueryBuilderDoesNotInfluenceSourceOne ()
 
 settingRestrictionContainerWillAddAdditionalRestrictionsFromConstructor ()
 
 settingRestrictionContainerWillAddAdditionalRestrictionsFromConfiguration ()
 
 settingRestrictionContainerWillNotAddAdditionalRestrictionsFromConfigurationIfNotDisabled ()
 
 resettingToDefaultRestrictionContainerWillAddAdditionalRestrictionsFromConfiguration ()
 
 setWithNamedParameterPassesGivenTypeToCreateNamedParameter ($input, int $type)
 
 createNamedParameterInput ()
 
 castFieldToTextTypeDataProvider ()
 
 castFieldToTextType (AbstractPlatform $platform, string $expectation)
 
 limitRestrictionsToTablesLimitsRestrictionsInTheContainerToTheGivenTables ()
 
 restrictionsCanStillBeRemovedAfterTheyHaveBeenLimitedToTables ()
 
 restrictionsAreAppliedInJoinConditionForLeftJoins ()
 
 restrictionsAreAppliedInJoinConditionForRightJoins ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

ObjectProphecy $connection
 
AbstractPlatform $platform
 
QueryBuilder $subject
 
ObjectProphecy $concreteQueryBuilder
 

Detailed Description

Test case

Definition at line 44 of file QueryBuilderTest.php.

Member Function Documentation

◆ addDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::addDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 248 of file QueryBuilderTest.php.

◆ addGroupByQuotesIdentifierAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::addGroupByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 708 of file QueryBuilderTest.php.

◆ addOrderByQuotesIdentifierAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::addOrderByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 843 of file QueryBuilderTest.php.

◆ addSelectDoesNotQuoteStarPlaceholder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::addSelectDoesNotQuoteStarPlaceholder ( )
Test:

Definition at line 423 of file QueryBuilderTest.php.

◆ addSelectLiteralDirectlyDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::addSelectLiteralDirectlyDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 454 of file QueryBuilderTest.php.

◆ addSelectQuotesIdentifiersAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::addSelectQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 405 of file QueryBuilderTest.php.

◆ andHavingDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::andHavingDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 804 of file QueryBuilderTest.php.

◆ andWhereDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::andWhereDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 669 of file QueryBuilderTest.php.

◆ castFieldToTextType()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::castFieldToTextType ( AbstractPlatform  $platform,
string  $expectation 
)

◆ castFieldToTextTypeDataProvider()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::castFieldToTextTypeDataProvider ( )

Definition at line 1401 of file QueryBuilderTest.php.

◆ changingClonedQueryBuilderDoesNotInfluenceSourceOne()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::changingClonedQueryBuilderDoesNotInfluenceSourceOne ( )

◆ cloningQueryBuilderClonesConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::cloningQueryBuilderClonesConcreteQueryBuilder ( )

◆ countBuildsExpressionAndCallsSelect()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::countBuildsExpressionAndCallsSelect ( )
Test:

Definition at line 260 of file QueryBuilderTest.php.

◆ createNamedParameterDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::createNamedParameterDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 906 of file QueryBuilderTest.php.

◆ createNamedParameterInput()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::createNamedParameterInput ( )

◆ createPositionalParameterDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::createPositionalParameterDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 918 of file QueryBuilderTest.php.

◆ deleteQuotesIdentifierAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::deleteQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:
Todo:
‪: Test with alias

Definition at line 469 of file QueryBuilderTest.php.

◆ exprReturnsExpressionBuilderForConnection()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::exprReturnsExpressionBuilderForConnection ( )
Test:

Definition at line 78 of file QueryBuilderTest.php.

◆ fromQuotesIdentifierAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::fromQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:
Todo:
‪: Test with alias

Definition at line 516 of file QueryBuilderTest.php.

◆ getFirstResultDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::getFirstResultDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 212 of file QueryBuilderTest.php.

◆ getMaxResultsDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::getMaxResultsDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 236 of file QueryBuilderTest.php.

◆ getParameterDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::getParameterDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 164 of file QueryBuilderTest.php.

◆ getParametersDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::getParametersDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 152 of file QueryBuilderTest.php.

◆ getParameterTypeDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::getParameterTypeDelegatesToConcreteQueryBuilder ( )

◆ getParameterTypesDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::getParameterTypesDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 176 of file QueryBuilderTest.php.

◆ getQueriedTablesReturnsSameTableTwiceForInnerJoin()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::getQueriedTablesReturnsSameTableTwiceForInnerJoin ( )

◆ getQueryPartDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::getQueryPartDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 858 of file QueryBuilderTest.php.

◆ getQueryPartsDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::getQueryPartsDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 870 of file QueryBuilderTest.php.

◆ getSQLDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::getSQLDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 114 of file QueryBuilderTest.php.

◆ getStateDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::getStateDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 102 of file QueryBuilderTest.php.

◆ getTypeDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::getTypeDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 90 of file QueryBuilderTest.php.

◆ groupByQuotesIdentifierAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::groupByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 693 of file QueryBuilderTest.php.

◆ havingDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::havingDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 792 of file QueryBuilderTest.php.

◆ innerJoinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::innerJoinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 552 of file QueryBuilderTest.php.

◆ insertQuotesIdentifierAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::insertQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 500 of file QueryBuilderTest.php.

◆ joinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::joinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 531 of file QueryBuilderTest.php.

◆ leftJoinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::leftJoinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 573 of file QueryBuilderTest.php.

◆ limitRestrictionsToTablesLimitsRestrictionsInTheContainerToTheGivenTables()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::limitRestrictionsToTablesLimitsRestrictionsInTheContainerToTheGivenTables ( )

◆ orderByQuotesIdentifierAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::orderByQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 828 of file QueryBuilderTest.php.

◆ orHavingDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::orHavingDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 816 of file QueryBuilderTest.php.

◆ orWhereDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::orWhereDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 681 of file QueryBuilderTest.php.

◆ queryRestrictionsAreAddedForCountOnExecuteQuery()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::queryRestrictionsAreAddedForCountOnExecuteQuery ( )

◆ queryRestrictionsAreAddedForSelectOnExecuteQuery()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::queryRestrictionsAreAddedForSelectOnExecuteQuery ( )

◆ queryRestrictionsAreReevaluatedOnSettingsChangeForExecuteQuery()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::queryRestrictionsAreReevaluatedOnSettingsChangeForExecuteQuery ( )

◆ queryRestrictionsAreReevaluatedOnSettingsChangeForGetSQL()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::queryRestrictionsAreReevaluatedOnSettingsChangeForGetSQL ( )

◆ quoteIdentifiersForSelect()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::quoteIdentifiersForSelect (   $identifier,
  $expectedResult 
)
Test:
‪@dataProvider quoteIdentifiersForSelectDataProvider
Parameters
string$identifier
string$expectedResult

Definition at line 354 of file QueryBuilderTest.php.

References $args, and TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\$platform.

◆ quoteIdentifiersForSelectDataProvider()

array TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::quoteIdentifiersForSelectDataProvider ( )
Returns
‪array

Definition at line 290 of file QueryBuilderTest.php.

◆ quoteIdentifiersForSelectWithInvalidAlias()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::quoteIdentifiersForSelectWithInvalidAlias ( )

◆ resetQueryPartDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::resetQueryPartDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 894 of file QueryBuilderTest.php.

◆ resetQueryPartsDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::resetQueryPartsDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 882 of file QueryBuilderTest.php.

◆ resettingToDefaultRestrictionContainerWillAddAdditionalRestrictionsFromConfiguration()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::resettingToDefaultRestrictionContainerWillAddAdditionalRestrictionsFromConfiguration ( )
Test:

Definition at line 1343 of file QueryBuilderTest.php.

◆ restrictionsAreAppliedInJoinConditionForLeftJoins()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::restrictionsAreAppliedInJoinConditionForLeftJoins ( )

◆ restrictionsAreAppliedInJoinConditionForRightJoins()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::restrictionsAreAppliedInJoinConditionForRightJoins ( )

◆ restrictionsCanStillBeRemovedAfterTheyHaveBeenLimitedToTables()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::restrictionsCanStillBeRemovedAfterTheyHaveBeenLimitedToTables ( )

◆ rightJoinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::rightJoinQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 597 of file QueryBuilderTest.php.

◆ selectDoesNotQuoteStarPlaceholder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::selectDoesNotQuoteStarPlaceholder ( )
Test:

Definition at line 388 of file QueryBuilderTest.php.

◆ selectLiteralDirectlyDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::selectLiteralDirectlyDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 440 of file QueryBuilderTest.php.

◆ selectQuotesIdentifiersAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::selectQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 272 of file QueryBuilderTest.php.

◆ setFirstResultDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::setFirstResultDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 200 of file QueryBuilderTest.php.

◆ setMaxResultsDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::setMaxResultsDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 224 of file QueryBuilderTest.php.

◆ setParameterDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::setParameterDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 128 of file QueryBuilderTest.php.

◆ setParametersDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::setParametersDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 140 of file QueryBuilderTest.php.

◆ setQuotesIdentifierAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::setQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 623 of file QueryBuilderTest.php.

◆ settingRestrictionContainerWillAddAdditionalRestrictionsFromConfiguration()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::settingRestrictionContainerWillAddAdditionalRestrictionsFromConfiguration ( )
Test:

Definition at line 1305 of file QueryBuilderTest.php.

References $GLOBALS.

◆ settingRestrictionContainerWillAddAdditionalRestrictionsFromConstructor()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::settingRestrictionContainerWillAddAdditionalRestrictionsFromConstructor ( )
Test:

Definition at line 1284 of file QueryBuilderTest.php.

◆ settingRestrictionContainerWillNotAddAdditionalRestrictionsFromConfigurationIfNotDisabled()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::settingRestrictionContainerWillNotAddAdditionalRestrictionsFromConfigurationIfNotDisabled ( )
Test:

Definition at line 1324 of file QueryBuilderTest.php.

References $GLOBALS.

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::setUp ( )
protected

Create a new database connection mock object for every test.

Definition at line 59 of file QueryBuilderTest.php.

◆ setValueQuotesIdentifierAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::setValueQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 723 of file QueryBuilderTest.php.

◆ setValueWithoutNamedParameterQuotesIdentifierAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::setValueWithoutNamedParameterQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 741 of file QueryBuilderTest.php.

◆ setWithNamedParameterPassesGivenTypeToCreateNamedParameter()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::setWithNamedParameterPassesGivenTypeToCreateNamedParameter (   $input,
int  $type 
)
Test:
‪@dataProvider createNamedParameterInput
Parameters
mixed$input
int$type

Definition at line 1368 of file QueryBuilderTest.php.

References TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\$concreteQueryBuilder, and TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\$subject.

◆ setWithoutNamedParameterQuotesIdentifierAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::setWithoutNamedParameterQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 641 of file QueryBuilderTest.php.

◆ unquoteSingleIdentifierUnquotesCorrectlyOnDifferentPlatforms()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::unquoteSingleIdentifierUnquotesCorrectlyOnDifferentPlatforms ( string  $platform,
string  $quoteChar,
string  $input,
string  $expected 
)
Test:
‪@dataProvider unquoteSingleIdentifierUnquotesCorrectlyOnDifferentPlatformsDataProvider
Parameters
string$platform
string$quoteChar
string$input
string$expected

Definition at line 1200 of file QueryBuilderTest.php.

References TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\$platform, and TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\$subject.

◆ unquoteSingleIdentifierUnquotesCorrectlyOnDifferentPlatformsDataProvider()

array TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::unquoteSingleIdentifierUnquotesCorrectlyOnDifferentPlatformsDataProvider ( )
Returns
‪array

Definition at line 1162 of file QueryBuilderTest.php.

◆ updateQuotesIdentifierAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::updateQuotesIdentifierAndDelegatesToConcreteQueryBuilder ( )
Test:
Todo:
‪: Test with alias

Definition at line 485 of file QueryBuilderTest.php.

◆ valuesQuotesIdentifiersAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::valuesQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 756 of file QueryBuilderTest.php.

◆ valuesWithoutNamedParametersQuotesIdentifiersAndDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::valuesWithoutNamedParametersQuotesIdentifiersAndDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 777 of file QueryBuilderTest.php.

◆ whereDelegatesToConcreteQueryBuilder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::whereDelegatesToConcreteQueryBuilder ( )
Test:

Definition at line 657 of file QueryBuilderTest.php.

Member Data Documentation

◆ $concreteQueryBuilder

◆ $connection

ObjectProphecy TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::$connection
protected

Definition at line 48 of file QueryBuilderTest.php.

◆ $platform

◆ $subject

QueryBuilder TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest::$subject
protected

Definition at line 51 of file QueryBuilderTest.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\castFieldToTextType(), TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\changingClonedQueryBuilderDoesNotInfluenceSourceOne(), TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\cloningQueryBuilderClonesConcreteQueryBuilder(), TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\getQueriedTablesReturnsSameTableTwiceForInnerJoin(), TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\limitRestrictionsToTablesLimitsRestrictionsInTheContainerToTheGivenTables(), TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\queryRestrictionsAreAddedForCountOnExecuteQuery(), TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\queryRestrictionsAreAddedForSelectOnExecuteQuery(), TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\queryRestrictionsAreReevaluatedOnSettingsChangeForExecuteQuery(), TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\queryRestrictionsAreReevaluatedOnSettingsChangeForGetSQL(), TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\restrictionsAreAppliedInJoinConditionForLeftJoins(), TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\restrictionsAreAppliedInJoinConditionForRightJoins(), TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\restrictionsCanStillBeRemovedAfterTheyHaveBeenLimitedToTables(), TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\setWithNamedParameterPassesGivenTypeToCreateNamedParameter(), and TYPO3\CMS\Core\Tests\Unit\Database\Query\QueryBuilderTest\unquoteSingleIdentifierUnquotesCorrectlyOnDifferentPlatforms().