‪TYPO3CMS  9.5
TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest:

Public Member Functions

 andXReturnType ()
 
 orXReturnType ()
 
 eqQuotesIdentifier ()
 
 neqQuotesIdentifier ()
 
 ltQuotesIdentifier ()
 
 lteQuotesIdentifier ()
 
 gtQuotesIdentifier ()
 
 gteQuotesIdentifier ()
 
 isNullQuotesIdentifier ()
 
 isNotNullQuotesIdentifier ()
 
 likeQuotesIdentifier ()
 
 notLikeQuotesIdentifier ()
 
 inWithStringQuotesIdentifier ()
 
 inWithArrayQuotesIdentifier ()
 
 notInWithStringQuotesIdentifier ()
 
 notInWithArrayQuotesIdentifier ()
 
 inSetThrowsExceptionWithEmptyValue ()
 
 inSetThrowsExceptionWithInvalidValue ()
 
 inSetForMySQL ()
 
 inSetForPostgreSQL ()
 
 inSetForPostgreSQLWithColumn ()
 
 inSetForSQLite ()
 
 inSetForSQLiteWithQuoteCharactersInValue ()
 
 inSetForSQLiteThrowsExceptionOnPositionalPlaceholder ()
 
 inSetForSQLiteThrowsExceptionOnNamedPlaceholder ()
 
 inSetForMssql ()
 
 defaultBitwiseAnd ()
 
 bitwiseAndForOracle ()
 
 maxQuotesIdentifier ()
 
 minQuotesIdentifier ()
 
 sumQuotesIdentifier ()
 
 avgQuotesIdentifier ()
 
 countQuotesIdentifier ()
 
 lengthQuotesIdentifier ()
 
 trimQuotesIdentifierWithDefaultValues ()
 
array trimQuotesIdentifierDataProvider ()
 
 trimQuotesIdentifier (int $position, string $char, string $expected)
 
 literalQuotesValue ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

Connection $connectionProphet
 
ExpressionBuilder $subject
 
string $testTable = 'testTable'
 

Detailed Description

Test case

Definition at line 30 of file ExpressionBuilderTest.php.

Member Function Documentation

◆ andXReturnType()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::andXReturnType ( )
Test:

Definition at line 61 of file ExpressionBuilderTest.php.

◆ avgQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::avgQuotesIdentifier ( )
Test:

Definition at line 505 of file ExpressionBuilderTest.php.

References $args.

◆ bitwiseAndForOracle()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::bitwiseAndForOracle ( )
Test:

Definition at line 437 of file ExpressionBuilderTest.php.

References $args.

◆ countQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::countQuotesIdentifier ( )
Test:

Definition at line 522 of file ExpressionBuilderTest.php.

References $args.

◆ defaultBitwiseAnd()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::defaultBitwiseAnd ( )
Test:

Definition at line 421 of file ExpressionBuilderTest.php.

References $args.

◆ eqQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::eqQuotesIdentifier ( )
Test:

Definition at line 83 of file ExpressionBuilderTest.php.

◆ gteQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::gteQuotesIdentifier ( )
Test:

Definition at line 138 of file ExpressionBuilderTest.php.

◆ gtQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::gtQuotesIdentifier ( )
Test:

Definition at line 127 of file ExpressionBuilderTest.php.

◆ inSetForMssql()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::inSetForMssql ( )
Test:

Definition at line 397 of file ExpressionBuilderTest.php.

References $args.

◆ inSetForMySQL()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::inSetForMySQL ( )
Test:

Definition at line 257 of file ExpressionBuilderTest.php.

References $args.

◆ inSetForPostgreSQL()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::inSetForPostgreSQL ( )
Test:

Definition at line 276 of file ExpressionBuilderTest.php.

References $args.

◆ inSetForPostgreSQLWithColumn()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::inSetForPostgreSQLWithColumn ( )
Test:

Definition at line 298 of file ExpressionBuilderTest.php.

References $args.

◆ inSetForSQLite()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::inSetForSQLite ( )
Test:

Definition at line 318 of file ExpressionBuilderTest.php.

References $args.

◆ inSetForSQLiteThrowsExceptionOnNamedPlaceholder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::inSetForSQLiteThrowsExceptionOnNamedPlaceholder ( )
Test:

Definition at line 380 of file ExpressionBuilderTest.php.

◆ inSetForSQLiteThrowsExceptionOnPositionalPlaceholder()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::inSetForSQLiteThrowsExceptionOnPositionalPlaceholder ( )
Test:

Definition at line 363 of file ExpressionBuilderTest.php.

◆ inSetForSQLiteWithQuoteCharactersInValue()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::inSetForSQLiteWithQuoteCharactersInValue ( )
Test:

Definition at line 340 of file ExpressionBuilderTest.php.

References $args.

◆ inSetThrowsExceptionWithEmptyValue()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::inSetThrowsExceptionWithEmptyValue ( )
Test:

Definition at line 237 of file ExpressionBuilderTest.php.

◆ inSetThrowsExceptionWithInvalidValue()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::inSetThrowsExceptionWithInvalidValue ( )
Test:

Definition at line 247 of file ExpressionBuilderTest.php.

◆ inWithArrayQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::inWithArrayQuotesIdentifier ( )
Test:

Definition at line 204 of file ExpressionBuilderTest.php.

◆ inWithStringQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::inWithStringQuotesIdentifier ( )
Test:

Definition at line 193 of file ExpressionBuilderTest.php.

◆ isNotNullQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::isNotNullQuotesIdentifier ( )
Test:

Definition at line 160 of file ExpressionBuilderTest.php.

◆ isNullQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::isNullQuotesIdentifier ( )
Test:

Definition at line 149 of file ExpressionBuilderTest.php.

◆ lengthQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::lengthQuotesIdentifier ( )
Test:

Definition at line 539 of file ExpressionBuilderTest.php.

References $args.

◆ likeQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::likeQuotesIdentifier ( )
Test:

Definition at line 171 of file ExpressionBuilderTest.php.

◆ literalQuotesValue()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::literalQuotesValue ( )
Test:

Definition at line 643 of file ExpressionBuilderTest.php.

◆ lteQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::lteQuotesIdentifier ( )
Test:

Definition at line 116 of file ExpressionBuilderTest.php.

◆ ltQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::ltQuotesIdentifier ( )
Test:

Definition at line 105 of file ExpressionBuilderTest.php.

◆ maxQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::maxQuotesIdentifier ( )
Test:

Definition at line 454 of file ExpressionBuilderTest.php.

References $args.

◆ minQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::minQuotesIdentifier ( )
Test:

Definition at line 471 of file ExpressionBuilderTest.php.

References $args.

◆ neqQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::neqQuotesIdentifier ( )
Test:

Definition at line 94 of file ExpressionBuilderTest.php.

◆ notInWithArrayQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::notInWithArrayQuotesIdentifier ( )
Test:

Definition at line 226 of file ExpressionBuilderTest.php.

◆ notInWithStringQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::notInWithStringQuotesIdentifier ( )
Test:

Definition at line 215 of file ExpressionBuilderTest.php.

◆ notLikeQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::notLikeQuotesIdentifier ( )
Test:

Definition at line 182 of file ExpressionBuilderTest.php.

◆ orXReturnType()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::orXReturnType ( )
Test:

Definition at line 72 of file ExpressionBuilderTest.php.

◆ setUp()

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

Create a new database connection mock object for every test.

Definition at line 47 of file ExpressionBuilderTest.php.

◆ sumQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::sumQuotesIdentifier ( )
Test:

Definition at line 488 of file ExpressionBuilderTest.php.

References $args.

◆ trimQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::trimQuotesIdentifier ( int  $position,
string  $char,
string  $expected 
)
Parameters
int$position
string$char
string$expected
Test:
‪@dataProvider trimQuotesIdentifierDataProvider

Definition at line 613 of file ExpressionBuilderTest.php.

References $args.

◆ trimQuotesIdentifierDataProvider()

array TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::trimQuotesIdentifierDataProvider ( )
Returns
‪array

Definition at line 579 of file ExpressionBuilderTest.php.

◆ trimQuotesIdentifierWithDefaultValues()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::trimQuotesIdentifierWithDefaultValues ( )
Test:

Definition at line 556 of file ExpressionBuilderTest.php.

References $args.

Member Data Documentation

◆ $connectionProphet

Connection TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::$connectionProphet
protected

Definition at line 34 of file ExpressionBuilderTest.php.

◆ $subject

ExpressionBuilder TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::$subject
protected

Definition at line 38 of file ExpressionBuilderTest.php.

◆ $testTable

string TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::$testTable = 'testTable'
protected

Definition at line 42 of file ExpressionBuilderTest.php.