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

Public Member Functions

 searchQueryDataProvider ()
 
 stripOrderByForOrderByKeywordDataProvider ()
 
 stripGroupByForGroupByKeywordDataProvider ()
 
 cleanIntArrayDataProvider ()
 
 cleanIntArray ($exampleData, $expectedResult)
 
 cleanIntListReturnsCleanedString ()
 
 sqlForSelectMmQuery ()
 
 noQuoteForFullQuoteArrayDataProvider ()
 
 insertQueryCreateValidQuery ()
 
 insertQueryCreateValidQueryFromMultipleValues ()
 
 insertMultipleRowsCreateValidQuery ()
 
 updateQueryCreateValidQuery ()
 
 deleteQueryCreateValidQuery ()
 
 selectQueryCreateValidQuery ()
 
 selectQueryCreateValidQueryWithEmptyWhereClause ()
 
 selectQueryCreateValidQueryWithGroupByClause ()
 
 selectQueryCreateValidQueryWithOrderByClause ()
 
 selectQueryCreateValidQueryWithLimitClause ()
 
 selectSubQueryCreateValidQuery ()
 
 truncateQueryCreateValidQuery ()
 

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

 $subject
 
 $testTable = 'test_database_connection'
 
 $testField = 'test_field'
 
 $anotherTestField = 'another_test_field'
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 26 of file Unit/Database/DatabaseConnectionTest.php.

Member Function Documentation

cleanIntArray (   $exampleData,
  $expectedResult 
)
Test:
cleanIntArrayDataProvider
Parameters
array$exampleDataThe array to sanitize
array$expectedResultThe expected result
Returns
void

Definition at line 472 of file Unit/Database/DatabaseConnectionTest.php.

cleanIntArrayDataProvider ( )

Data Provider for stripGroupByForGroupByKeyword()

See also
stripOrderByForOrderByKeyword()
Returns
array

Definition at line 413 of file Unit/Database/DatabaseConnectionTest.php.

cleanIntListReturnsCleanedString ( )
Test:
Returns
void

Definition at line 483 of file Unit/Database/DatabaseConnectionTest.php.

deleteQueryCreateValidQuery ( )
Test:
Returns
void

Definition at line 696 of file Unit/Database/DatabaseConnectionTest.php.

insertMultipleRowsCreateValidQuery ( )
insertQueryCreateValidQuery ( )
Test:
Returns
void

Definition at line 608 of file Unit/Database/DatabaseConnectionTest.php.

References BaseTestCase\getAccessibleMock().

insertQueryCreateValidQueryFromMultipleValues ( )
Test:
Returns
void

Definition at line 628 of file Unit/Database/DatabaseConnectionTest.php.

References BaseTestCase\getAccessibleMock().

noQuoteForFullQuoteArrayDataProvider ( )

Data provider for searchQueryCreatesQuery

Returns
array

Definition at line 516 of file Unit/Database/DatabaseConnectionTest.php.

searchQueryDataProvider ( )

Data provider for searchQueryCreatesQuery

Returns
array

Definition at line 161 of file Unit/Database/DatabaseConnectionTest.php.

selectQueryCreateValidQuery ( )
Test:
Returns
void

Definition at line 708 of file Unit/Database/DatabaseConnectionTest.php.

selectQueryCreateValidQueryWithEmptyWhereClause ( )
Test:
Returns
void

Definition at line 720 of file Unit/Database/DatabaseConnectionTest.php.

selectQueryCreateValidQueryWithGroupByClause ( )
Test:
Returns
void

Definition at line 732 of file Unit/Database/DatabaseConnectionTest.php.

selectQueryCreateValidQueryWithLimitClause ( )
Test:
Returns
void

Definition at line 756 of file Unit/Database/DatabaseConnectionTest.php.

selectQueryCreateValidQueryWithOrderByClause ( )
Test:
Returns
void

Definition at line 744 of file Unit/Database/DatabaseConnectionTest.php.

selectSubQueryCreateValidQuery ( )
Test:
Returns
void

Definition at line 768 of file Unit/Database/DatabaseConnectionTest.php.

setUp ( )
protected

Set the test up

Returns
void

Definition at line 52 of file Unit/Database/DatabaseConnectionTest.php.

References BaseTestCase\getAccessibleMock().

sqlForSelectMmQuery ( )
Test:

Definition at line 493 of file Unit/Database/DatabaseConnectionTest.php.

stripGroupByForGroupByKeywordDataProvider ( )

Data Provider for stripGroupByForGroupByKeyword()

See also
stripGroupByForGroupByKeyword()
Returns
array

Definition at line 343 of file Unit/Database/DatabaseConnectionTest.php.

stripOrderByForOrderByKeywordDataProvider ( )

Data Provider for stripGroupByForGroupByKeyword()

See also
stripOrderByForOrderByKeyword()
Returns
array

Definition at line 273 of file Unit/Database/DatabaseConnectionTest.php.

truncateQueryCreateValidQuery ( )
Test:
Returns
void

Definition at line 780 of file Unit/Database/DatabaseConnectionTest.php.

updateQueryCreateValidQuery ( )
Test:
Returns
void

Definition at line 676 of file Unit/Database/DatabaseConnectionTest.php.

References BaseTestCase\getAccessibleMock().

Member Data Documentation

$anotherTestField = 'another_test_field'
protected
$subject
protected

Definition at line 31 of file Unit/Database/DatabaseConnectionTest.php.

$testField = 'test_field'
protected
$testTable = 'test_database_connection'
protected

Definition at line 35 of file Unit/Database/DatabaseConnectionTest.php.