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

Public Member Functions

 convertQueryToDoctrineQueryBuilderDoesNotAddAndWhereWithEmptyConstraint ()
 
 convertQueryToDoctrineQueryBuilderThrowsExceptionOnNotImplementedConstraint ()
 
 convertQueryToDoctrineQueryBuilderAddsSimpleAndWhere ()
 
 convertQueryToDoctrineQueryBuilderAddsNotConstraint ()
 
 convertQueryToDoctrineQueryBuilderAddsAndConstraint ()
 
 convertQueryToDoctrineQueryBuilderNotAddsInvalidAndConstraint ()
 
 convertQueryToDoctrineQueryBuilderAddsOrConstraint ()
 
 convertQueryToDoctrineQueryBuilderNotAddsInvalidOrConstraint ()
 
 addSysLanguageStatementWorksInBackendContextWithNoGlobalTypoScriptFrontendControllerAvailable ()
 
 addSysLanguageStatementWorksForDefaultLanguageWithoutDeleteStatementReturned ()
 
 addSysLanguageStatementWorksForForeignLanguageWithoutSubselection ()
 
 addSysLanguageStatementWorksForForeignLanguageWithSubselectionWithoutDeleteStatementReturned ()
 
 addSysLanguageStatementWorksForForeignLanguageWithSubselectionTakesDeleteStatementIntoAccountIfNecessary ()
 
 addSysLanguageStatementWorksInBackendContextWithSubselectionTakesDeleteStatementIntoAccountIfNecessary ()
 
 orderStatementGenerationWorks ()
 
 orderStatementGenerationThrowsExceptionOnUnsupportedOrder ()
 
 orderStatementGenerationWorksWithMultipleOrderings ()
 
 providerForVisibilityConstraintStatement ()
 
 providerForRespectEnableFields ()
 
 providerForAddPageIdStatementData ()
 
 addPageIdStatementSetsPidToZeroIfTableDeclaresRootlevel ($rootLevel, $table, $expectedSql, $storagePageIds=[42, 27])
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 getQueryBuilderWithExpressionBuilderProphet ()
 
 getQueryBuilderProphetWithQueryBuilderForSubselect ()
 
- 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

 $singletonInstances
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Definition at line 36 of file Typo3DbQueryParserTest.php.

Member Function Documentation

addPageIdStatementSetsPidToZeroIfTableDeclaresRootlevel (   $rootLevel,
  $table,
  $expectedSql,
  $storagePageIds = [42,
27]   
)
addSysLanguageStatementWorksForDefaultLanguageWithoutDeleteStatementReturned ( )
addSysLanguageStatementWorksForForeignLanguageWithoutSubselection ( )
addSysLanguageStatementWorksForForeignLanguageWithSubselectionTakesDeleteStatementIntoAccountIfNecessary ( )
addSysLanguageStatementWorksForForeignLanguageWithSubselectionWithoutDeleteStatementReturned ( )
addSysLanguageStatementWorksInBackendContextWithNoGlobalTypoScriptFrontendControllerAvailable ( )
addSysLanguageStatementWorksInBackendContextWithSubselectionTakesDeleteStatementIntoAccountIfNecessary ( )
convertQueryToDoctrineQueryBuilderAddsAndConstraint ( )
Test:

Definition at line 176 of file Typo3DbQueryParserTest.php.

References BaseTestCase\getAccessibleMock().

convertQueryToDoctrineQueryBuilderAddsNotConstraint ( )
Test:

Definition at line 147 of file Typo3DbQueryParserTest.php.

References BaseTestCase\getAccessibleMock().

convertQueryToDoctrineQueryBuilderAddsOrConstraint ( )
Test:

Definition at line 245 of file Typo3DbQueryParserTest.php.

References BaseTestCase\getAccessibleMock().

convertQueryToDoctrineQueryBuilderAddsSimpleAndWhere ( )
Test:

Definition at line 119 of file Typo3DbQueryParserTest.php.

References BaseTestCase\getAccessibleMock().

convertQueryToDoctrineQueryBuilderDoesNotAddAndWhereWithEmptyConstraint ( )
Test:

Definition at line 65 of file Typo3DbQueryParserTest.php.

References BaseTestCase\getAccessibleMock().

convertQueryToDoctrineQueryBuilderNotAddsInvalidAndConstraint ( )
Test:

Definition at line 213 of file Typo3DbQueryParserTest.php.

References BaseTestCase\getAccessibleMock().

convertQueryToDoctrineQueryBuilderNotAddsInvalidOrConstraint ( )
Test:

Definition at line 282 of file Typo3DbQueryParserTest.php.

References BaseTestCase\getAccessibleMock().

convertQueryToDoctrineQueryBuilderThrowsExceptionOnNotImplementedConstraint ( )
Test:

Definition at line 91 of file Typo3DbQueryParserTest.php.

References BaseTestCase\getAccessibleMock().

orderStatementGenerationThrowsExceptionOnUnsupportedOrder ( )
Test:

Definition at line 553 of file Typo3DbQueryParserTest.php.

References BaseTestCase\getAccessibleMock().

orderStatementGenerationWorks ( )
orderStatementGenerationWorksWithMultipleOrderings ( )
providerForAddPageIdStatementData ( )

DataProvider for addPageIdStatement Tests

Definition at line 774 of file Typo3DbQueryParserTest.php.

References BaseTestCase\getUniqueId().

providerForRespectEnableFields ( )

Definition at line 675 of file Typo3DbQueryParserTest.php.

providerForVisibilityConstraintStatement ( )

Definition at line 609 of file Typo3DbQueryParserTest.php.

setUp ( )
protected

Set up tests

Definition at line 46 of file Typo3DbQueryParserTest.php.

References GeneralUtility\getSingletonInstances().

tearDown ( )
protected

Clean up after tests

Definition at line 55 of file Typo3DbQueryParserTest.php.

References GeneralUtility\purgeInstances(), and GeneralUtility\resetSingletonInstances().

Member Data Documentation

$singletonInstances
protected

Definition at line 41 of file Typo3DbQueryParserTest.php.