‪TYPO3CMS  ‪main
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 ()
 
 likeQuotesLiteral ()
 
 notLikeQuotesLiteral ()
 
 inWithStringQuotesIdentifier ()
 
 inWithArrayQuotesIdentifier ()
 
 inThrowsExceptionWithEmptyArray ()
 
 inThrowsExceptionWithEmptyString ()
 
 notInWithStringQuotesIdentifier ()
 
 notInWithArrayQuotesIdentifier ()
 
 notInThrowsExceptionWithEmptyArray ()
 
 notInThrowsExceptionWithEmptyString ()
 
 inSetThrowsExceptionWithEmptyValue ()
 
 inSetThrowsExceptionWithInvalidValue ()
 
 inSetForMySQL ()
 
 inSetForPostgreSQL ()
 
 inSetForPostgreSQLWithColumn ()
 
 inSetForSQLite ()
 
 inSetForSQLiteWithQuoteCharactersInValue ()
 
 inSetForSQLiteThrowsExceptionOnPositionalPlaceholder ()
 
 inSetForSQLiteThrowsExceptionOnNamedPlaceholder ()
 
 notInSetThrowsExceptionWithEmptyValue ()
 
 notInSetThrowsExceptionWithInvalidValue ()
 
 notInSetForMySQL ()
 
 notInSetForPostgreSQL ()
 
 notInSetForPostgreSQLWithColumn ()
 
 notInSetForSQLite ()
 
 notInSetForSQLiteWithQuoteCharactersInValue ()
 
 notInSetForSQLiteThrowsExceptionOnPositionalPlaceholder ()
 
 notInSetForSQLiteThrowsExceptionOnNamedPlaceholder ()
 
 defaultBitwiseAnd ()
 
 maxQuotesIdentifier ()
 
 minQuotesIdentifier ()
 
 sumQuotesIdentifier ()
 
 avgQuotesIdentifier ()
 
 countQuotesIdentifier ()
 
 lengthQuotesIdentifier ()
 
 trimQuotesIdentifierWithDefaultValues ()
 
 trimQuotesIdentifier (TrimMode $position, string $char, string $expected)
 
 literalQuotesValue ()
 

Static Public Member Functions

static trimQuotesIdentifierDataProvider ()
 

Protected Member Functions

 setUp ()
 

Private Attributes

Connection &MockObject $connectionMock
 
ExpressionBuilder $subject
 

Detailed Description

Definition at line 33 of file ExpressionBuilderTest.php.

Member Function Documentation

◆ andXReturnType()

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

Definition at line 49 of file ExpressionBuilderTest.php.

◆ avgQuotesIdentifier()

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

Definition at line 594 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ countQuotesIdentifier()

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

Definition at line 608 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ defaultBitwiseAnd()

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

Definition at line 538 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ eqQuotesIdentifier()

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

Definition at line 67 of file ExpressionBuilderTest.php.

◆ gteQuotesIdentifier()

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

Definition at line 112 of file ExpressionBuilderTest.php.

◆ gtQuotesIdentifier()

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

Definition at line 103 of file ExpressionBuilderTest.php.

◆ inSetForMySQL()

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

Definition at line 249 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ inSetForPostgreSQL()

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

Definition at line 264 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ inSetForPostgreSQLWithColumn()

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

Definition at line 289 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ inSetForSQLite()

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

Definition at line 305 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ inSetForSQLiteThrowsExceptionOnNamedPlaceholder()

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

Definition at line 376 of file ExpressionBuilderTest.php.

◆ inSetForSQLiteThrowsExceptionOnPositionalPlaceholder()

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

Definition at line 364 of file ExpressionBuilderTest.php.

◆ inSetForSQLiteWithQuoteCharactersInValue()

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

Definition at line 335 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ inSetThrowsExceptionWithEmptyValue()

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

Definition at line 233 of file ExpressionBuilderTest.php.

◆ inSetThrowsExceptionWithInvalidValue()

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

Definition at line 241 of file ExpressionBuilderTest.php.

◆ inThrowsExceptionWithEmptyArray()

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

Definition at line 183 of file ExpressionBuilderTest.php.

◆ inThrowsExceptionWithEmptyString()

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

Definition at line 191 of file ExpressionBuilderTest.php.

◆ inWithArrayQuotesIdentifier()

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

Definition at line 174 of file ExpressionBuilderTest.php.

◆ inWithStringQuotesIdentifier()

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

Definition at line 165 of file ExpressionBuilderTest.php.

◆ isNotNullQuotesIdentifier()

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

Definition at line 130 of file ExpressionBuilderTest.php.

◆ isNullQuotesIdentifier()

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

Definition at line 121 of file ExpressionBuilderTest.php.

◆ lengthQuotesIdentifier()

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

Definition at line 622 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ likeQuotesLiteral()

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

Definition at line 139 of file ExpressionBuilderTest.php.

◆ literalQuotesValue()

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

Definition at line 704 of file ExpressionBuilderTest.php.

◆ lteQuotesIdentifier()

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

Definition at line 94 of file ExpressionBuilderTest.php.

◆ ltQuotesIdentifier()

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

Definition at line 85 of file ExpressionBuilderTest.php.

◆ maxQuotesIdentifier()

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

Definition at line 552 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ minQuotesIdentifier()

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

Definition at line 566 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ neqQuotesIdentifier()

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

Definition at line 76 of file ExpressionBuilderTest.php.

◆ notInSetForMySQL()

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

Definition at line 404 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ notInSetForPostgreSQL()

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

Definition at line 420 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ notInSetForPostgreSQLWithColumn()

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

Definition at line 445 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ notInSetForSQLite()

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

Definition at line 462 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ notInSetForSQLiteThrowsExceptionOnNamedPlaceholder()

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

Definition at line 526 of file ExpressionBuilderTest.php.

◆ notInSetForSQLiteThrowsExceptionOnPositionalPlaceholder()

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

Definition at line 514 of file ExpressionBuilderTest.php.

◆ notInSetForSQLiteWithQuoteCharactersInValue()

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

Definition at line 488 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ notInSetThrowsExceptionWithEmptyValue()

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

Definition at line 388 of file ExpressionBuilderTest.php.

◆ notInSetThrowsExceptionWithInvalidValue()

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

Definition at line 396 of file ExpressionBuilderTest.php.

◆ notInThrowsExceptionWithEmptyArray()

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

Definition at line 217 of file ExpressionBuilderTest.php.

◆ notInThrowsExceptionWithEmptyString()

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

Definition at line 225 of file ExpressionBuilderTest.php.

◆ notInWithArrayQuotesIdentifier()

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

Definition at line 208 of file ExpressionBuilderTest.php.

◆ notInWithStringQuotesIdentifier()

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

Definition at line 199 of file ExpressionBuilderTest.php.

◆ notLikeQuotesLiteral()

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

Definition at line 152 of file ExpressionBuilderTest.php.

◆ orXReturnType()

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

Definition at line 58 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 41 of file ExpressionBuilderTest.php.

◆ sumQuotesIdentifier()

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

Definition at line 580 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ trimQuotesIdentifier()

TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::trimQuotesIdentifier ( TrimMode  $position,
string  $char,
string  $expected 
)

Definition at line 681 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ trimQuotesIdentifierDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::trimQuotesIdentifierDataProvider ( )
static

Definition at line 653 of file ExpressionBuilderTest.php.

◆ trimQuotesIdentifierWithDefaultValues()

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

Definition at line 636 of file ExpressionBuilderTest.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

Member Data Documentation

◆ $connectionMock

Connection& MockObject TYPO3\CMS\Core\Tests\Unit\Database\Query\Expression\ExpressionBuilderTest::$connectionMock
private

Definition at line 35 of file ExpressionBuilderTest.php.

◆ $subject

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

Definition at line 36 of file ExpressionBuilderTest.php.