MediaWiki REL1_33
DatabaseSQLTest Class Reference

Test the parts of the Database abstract class that deal with creating SQL text. More...

Inheritance diagram for DatabaseSQLTest:
Collaboration diagram for DatabaseSQLTest:

Public Member Functions

 provideBuildSubstring ()
 
 provideBuildSubstring_invalidParams ()
 
 testAtomicSections ()
 \Wikimedia\Rdbms\Database::doSavepoint \Wikimedia\Rdbms\Database::doReleaseSavepoint \Wikimedia\Rdbms\Database::doRollbackToSavepoint \Wikimedia\Rdbms\Database::startAtomic \Wikimedia\Rdbms\Database::endAtomic \Wikimedia\Rdbms\Database::cancelAtomic \Wikimedia\Rdbms\Database::doAtomicSection
 
 testAtomicSectionsCallbackCancellation ()
 \Wikimedia\Rdbms\Database::doSavepoint \Wikimedia\Rdbms\Database::doReleaseSavepoint \Wikimedia\Rdbms\Database::doRollbackToSavepoint \Wikimedia\Rdbms\Database::startAtomic \Wikimedia\Rdbms\Database::endAtomic \Wikimedia\Rdbms\Database::cancelAtomic \Wikimedia\Rdbms\Database::doAtomicSection
 
 testAtomicSectionsRecovery ()
 \Wikimedia\Rdbms\Database::doSavepoint \Wikimedia\Rdbms\Database::doReleaseSavepoint \Wikimedia\Rdbms\Database::doRollbackToSavepoint \Wikimedia\Rdbms\Database::startAtomic \Wikimedia\Rdbms\Database::endAtomic \Wikimedia\Rdbms\Database::cancelAtomic \Wikimedia\Rdbms\Database::doAtomicSection
 
 testAtomicSectionsTrxRound ()
 \Wikimedia\Rdbms\Database::doSavepoint \Wikimedia\Rdbms\Database::doReleaseSavepoint \Wikimedia\Rdbms\Database::doRollbackToSavepoint \Wikimedia\Rdbms\Database::startAtomic \Wikimedia\Rdbms\Database::endAtomic \Wikimedia\Rdbms\Database::cancelAtomic \Wikimedia\Rdbms\Database::doAtomicSection
 
 testBuildConcat ( $stringList, $sqlText)
 provideBuildConcat Wikimedia\Rdbms\Database::buildConcat
 
 testBuildIntegerCast ()
 \Wikimedia\Rdbms\Database::buildIntegerCast
 
 testBuildLike ( $array, $sqlText)
 provideBuildLike Wikimedia\Rdbms\Database::buildLike Wikimedia\Rdbms\Database::escapeLikeInternal
 
 testBuildSubstring ( $input, $start, $length, $expected)
 Wikimedia\Rdbms\Database::buildSubstring provideBuildSubstring.
 
 testBuildSubstring_invalidParams ( $start, $length)
 Wikimedia\Rdbms\Database::buildSubstring Wikimedia\Rdbms\Database::assertBuildSubstringParams provideBuildSubstring_invalidParams.
 
 testConditional ( $sql, $sqlText)
 provideConditional Wikimedia\Rdbms\Database::conditional
 
 testDelete ( $sql, $sqlText)
 provideDelete Wikimedia\Rdbms\Database::delete
 
 testDeleteJoin ( $sql, $sqlText)
 provideDeleteJoin Wikimedia\Rdbms\Database::deleteJoin
 
 testDropNonExistingTable ()
 Wikimedia\Rdbms\Database::dropTable.
 
 testDropTable ()
 Wikimedia\Rdbms\Database::dropTable.
 
 testImplicitTransactionRollback ()
 \Wikimedia\Rdbms\Database::query
 
 testInsert ( $sql, $sqlText)
 provideInsert Wikimedia\Rdbms\Database::insert Wikimedia\Rdbms\Database::makeInsertOptions
 
 testInsertSelect ( $sql, $sqlTextNative, $sqlSelect, $sqlInsert)
 provideInsertSelect Wikimedia\Rdbms\Database::insertSelect Wikimedia\Rdbms\Database::nativeInsertSelect
 
 testInsertSelectBatching ()
 Wikimedia\Rdbms\Database::insertSelect Wikimedia\Rdbms\Database::nativeInsertSelect.
 
 testInvalidAtomicSectionEnded ( $method)
 provideAtomicSectionMethodsForErrors \Wikimedia\Rdbms\Database::endAtomic \Wikimedia\Rdbms\Database::cancelAtomic
 
 testLockForUpdate ( $sql, $sqlText)
 provideLockForUpdate Wikimedia\Rdbms\Database::lockForUpdate
 
 testMakeList ( $list, $mode, $sqlText)
 provideMakeList Wikimedia\Rdbms\Database::makeList
 
 testNativeReplace ( $sql, $sqlText)
 provideNativeReplace Wikimedia\Rdbms\Database::nativeReplace
 
 testNoAtomicSection ( $method)
 provideAtomicSectionMethodsForErrors \Wikimedia\Rdbms\Database::endAtomic \Wikimedia\Rdbms\Database::cancelAtomic
 
 testNoAtomicSectionForCallback ()
 \Wikimedia\Rdbms\Database::onAtomicSectionCancel
 
 testPrematureClose1 ()
 \Wikimedia\Rdbms\Database::close
 
 testPrematureClose2 ()
 \Wikimedia\Rdbms\Database::close
 
 testPrematureClose3 ()
 \Wikimedia\Rdbms\Database::close
 
 testPrematureClose4 ()
 \Wikimedia\Rdbms\Database::close
 
 testReplace ( $sql, $sqlText)
 provideReplace Wikimedia\Rdbms\Database::replace
 
 testSelect ( $sql, $sqlText)
 provideSelect Wikimedia\Rdbms\Database::select Wikimedia\Rdbms\Database::selectSQLText Wikimedia\Rdbms\Database::tableNamesWithIndexClauseOrJOIN Wikimedia\Rdbms\Database::useIndexClause Wikimedia\Rdbms\Database::ignoreIndexClause Wikimedia\Rdbms\Database::makeSelectOptions Wikimedia\Rdbms\Database::makeOrderBy Wikimedia\Rdbms\Database::makeGroupByWithHaving Wikimedia\Rdbms\Database::selectFieldsOrOptionsAggregate Wikimedia\Rdbms\Database::selectOptionsIncludeLocking
 
 testSelectFieldValues ()
 Wikimedia\Rdbms\Database::selectFieldValues()
 
 testSelectRowCount ( $sql, $sqlText)
 Wikimedia\Rdbms\Subquery provideSelectRowCount.
 
 testSessionTempTables ()
 Wikimedia\Rdbms\Database::registerTempTableWrite.
 
 testTransactionCommit ()
 Wikimedia\Rdbms\Database::commit Wikimedia\Rdbms\Database::doCommit.
 
 testTransactionErrorState1 ()
 \Wikimedia\Rdbms\DBTransactionStateError \Wikimedia\Rdbms\Database::assertTransactionStatus
 
 testTransactionErrorState2 ()
 \Wikimedia\Rdbms\Database::query
 
 testTransactionRollback ()
 Wikimedia\Rdbms\Database::rollback Wikimedia\Rdbms\Database::doRollback.
 
 testTransactionStatementRollbackIgnoring ()
 \Wikimedia\Rdbms\Database::query
 
 testUncancellableAtomicSection ()
 \Wikimedia\Rdbms\Database::cancelAtomic
 
 testUnionConditionPermutations ( $params, $expect)
 provideUnionConditionPermutations Wikimedia\Rdbms\Database::unionConditionPermutations
 
 testUnionQueries ( $sql, $sqlText)
 provideUnionQueries Wikimedia\Rdbms\Database::unionQueries
 
 testUpdate ( $sql, $sqlText)
 provideUpdate Wikimedia\Rdbms\Database::update Wikimedia\Rdbms\Database::makeUpdateOptions Wikimedia\Rdbms\Database::makeUpdateOptionsArray
 
 testUpsert ( $sql, $sqlText)
 provideUpsert Wikimedia\Rdbms\Database::upsert
 

Static Public Member Functions

static provideAtomicSectionMethodsForErrors ()
 
static provideBuildConcat ()
 
static provideBuildLike ()
 
static provideConditional ()
 
static provideDelete ()
 
static provideDeleteJoin ()
 
static provideInsert ()
 
static provideInsertSelect ()
 
static provideLockForUpdate ()
 
static provideMakeList ()
 
static provideNativeReplace ()
 
static provideReplace ()
 
static provideSelect ()
 
static provideSelectRowCount ()
 
static provideUnionConditionPermutations ()
 
static provideUnionQueries ()
 
static provideUpdate ()
 
static provideUpsert ()
 

Protected Member Functions

 assertLastSql ( $sqlText)
 
 assertLastSqlDb ( $sqlText, DatabaseTestHelper $db)
 
 setUp ()
 

Private Attributes

DatabaseTestHelper Database $database
 

Detailed Description

Test the parts of the Database abstract class that deal with creating SQL text.

Definition at line 15 of file DatabaseSQLTest.php.

Member Function Documentation

◆ assertLastSql()

◆ assertLastSqlDb()

DatabaseSQLTest::assertLastSqlDb (   $sqlText,
DatabaseTestHelper  $db 
)
protected

Definition at line 35 of file DatabaseSQLTest.php.

References DatabaseTestHelper\getLastSqls().

Referenced by testInsertSelect(), and testInsertSelectBatching().

◆ provideAtomicSectionMethodsForErrors()

static DatabaseSQLTest::provideAtomicSectionMethodsForErrors ( )
static

Definition at line 1919 of file DatabaseSQLTest.php.

◆ provideBuildConcat()

static DatabaseSQLTest::provideBuildConcat ( )
static

Definition at line 964 of file DatabaseSQLTest.php.

◆ provideBuildLike()

static DatabaseSQLTest::provideBuildLike ( )
static

Definition at line 988 of file DatabaseSQLTest.php.

◆ provideBuildSubstring()

DatabaseSQLTest::provideBuildSubstring ( )

Definition at line 1386 of file DatabaseSQLTest.php.

◆ provideBuildSubstring_invalidParams()

DatabaseSQLTest::provideBuildSubstring_invalidParams ( )

Definition at line 1400 of file DatabaseSQLTest.php.

◆ provideConditional()

static DatabaseSQLTest::provideConditional ( )
static

Definition at line 925 of file DatabaseSQLTest.php.

◆ provideDelete()

static DatabaseSQLTest::provideDelete ( )
static

Definition at line 473 of file DatabaseSQLTest.php.

◆ provideDeleteJoin()

static DatabaseSQLTest::provideDeleteJoin ( )
static

Definition at line 545 of file DatabaseSQLTest.php.

◆ provideInsert()

static DatabaseSQLTest::provideInsert ( )
static

Definition at line 591 of file DatabaseSQLTest.php.

◆ provideInsertSelect()

static DatabaseSQLTest::provideInsertSelect ( )
static

Definition at line 665 of file DatabaseSQLTest.php.

◆ provideLockForUpdate()

static DatabaseSQLTest::provideLockForUpdate ( )
static

Definition at line 277 of file DatabaseSQLTest.php.

◆ provideMakeList()

static DatabaseSQLTest::provideMakeList ( )
static

Definition at line 1275 of file DatabaseSQLTest.php.

References LIST_AND, LIST_COMMA, LIST_NAMES, LIST_OR, LIST_SET, and null.

◆ provideNativeReplace()

static DatabaseSQLTest::provideNativeReplace ( )
static

Definition at line 899 of file DatabaseSQLTest.php.

◆ provideReplace()

static DatabaseSQLTest::provideReplace ( )
static

Definition at line 785 of file DatabaseSQLTest.php.

◆ provideSelect()

static DatabaseSQLTest::provideSelect ( )
static

Definition at line 64 of file DatabaseSQLTest.php.

References true.

◆ provideSelectRowCount()

static DatabaseSQLTest::provideSelectRowCount ( )
static

Definition at line 329 of file DatabaseSQLTest.php.

◆ provideUnionConditionPermutations()

static DatabaseSQLTest::provideUnionConditionPermutations ( )
static

Definition at line 1079 of file DatabaseSQLTest.php.

References null.

◆ provideUnionQueries()

static DatabaseSQLTest::provideUnionQueries ( )
static

Definition at line 1032 of file DatabaseSQLTest.php.

◆ provideUpdate()

static DatabaseSQLTest::provideUpdate ( )
static

Definition at line 423 of file DatabaseSQLTest.php.

◆ provideUpsert()

static DatabaseSQLTest::provideUpsert ( )
static

Definition at line 508 of file DatabaseSQLTest.php.

◆ setUp()

DatabaseSQLTest::setUp ( )
protected

Definition at line 23 of file DatabaseSQLTest.php.

◆ testAtomicSections()

DatabaseSQLTest::testAtomicSections ( )

\Wikimedia\Rdbms\Database::doSavepoint \Wikimedia\Rdbms\Database::doReleaseSavepoint \Wikimedia\Rdbms\Database::doRollbackToSavepoint \Wikimedia\Rdbms\Database::startAtomic \Wikimedia\Rdbms\Database::endAtomic \Wikimedia\Rdbms\Database::cancelAtomic \Wikimedia\Rdbms\Database::doAtomicSection

Definition at line 1436 of file DatabaseSQLTest.php.

References $fname, assertLastSql(), and use.

◆ testAtomicSectionsCallbackCancellation()

DatabaseSQLTest::testAtomicSectionsCallbackCancellation ( )

\Wikimedia\Rdbms\Database::doSavepoint \Wikimedia\Rdbms\Database::doReleaseSavepoint \Wikimedia\Rdbms\Database::doRollbackToSavepoint \Wikimedia\Rdbms\Database::startAtomic \Wikimedia\Rdbms\Database::endAtomic \Wikimedia\Rdbms\Database::cancelAtomic \Wikimedia\Rdbms\Database::doAtomicSection

Definition at line 1722 of file DatabaseSQLTest.php.

References $e, $fname, assertLastSql(), and use.

◆ testAtomicSectionsRecovery()

DatabaseSQLTest::testAtomicSectionsRecovery ( )

\Wikimedia\Rdbms\Database::doSavepoint \Wikimedia\Rdbms\Database::doReleaseSavepoint \Wikimedia\Rdbms\Database::doRollbackToSavepoint \Wikimedia\Rdbms\Database::startAtomic \Wikimedia\Rdbms\Database::endAtomic \Wikimedia\Rdbms\Database::cancelAtomic \Wikimedia\Rdbms\Database::doAtomicSection

Definition at line 1667 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testAtomicSectionsTrxRound()

DatabaseSQLTest::testAtomicSectionsTrxRound ( )

\Wikimedia\Rdbms\Database::doSavepoint \Wikimedia\Rdbms\Database::doReleaseSavepoint \Wikimedia\Rdbms\Database::doRollbackToSavepoint \Wikimedia\Rdbms\Database::startAtomic \Wikimedia\Rdbms\Database::endAtomic \Wikimedia\Rdbms\Database::cancelAtomic \Wikimedia\Rdbms\Database::doAtomicSection

Definition at line 1909 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testBuildConcat()

DatabaseSQLTest::testBuildConcat (   $stringList,
  $sqlText 
)

provideBuildConcat Wikimedia\Rdbms\Database::buildConcat

Definition at line 958 of file DatabaseSQLTest.php.

◆ testBuildIntegerCast()

DatabaseSQLTest::testBuildIntegerCast ( )

\Wikimedia\Rdbms\Database::buildIntegerCast

Definition at line 1422 of file DatabaseSQLTest.php.

References $output.

◆ testBuildLike()

DatabaseSQLTest::testBuildLike (   $array,
  $sqlText 
)

provideBuildLike Wikimedia\Rdbms\Database::buildLike Wikimedia\Rdbms\Database::escapeLikeInternal

Definition at line 982 of file DatabaseSQLTest.php.

◆ testBuildSubstring()

DatabaseSQLTest::testBuildSubstring (   $input,
  $start,
  $length,
  $expected 
)

Wikimedia\Rdbms\Database::buildSubstring provideBuildSubstring.

Definition at line 1395 of file DatabaseSQLTest.php.

References $input, and $output.

◆ testBuildSubstring_invalidParams()

DatabaseSQLTest::testBuildSubstring_invalidParams (   $start,
  $length 
)

Wikimedia\Rdbms\Database::buildSubstring Wikimedia\Rdbms\Database::assertBuildSubstringParams provideBuildSubstring_invalidParams.

Definition at line 1414 of file DatabaseSQLTest.php.

◆ testConditional()

DatabaseSQLTest::testConditional (   $sql,
  $sqlText 
)

provideConditional Wikimedia\Rdbms\Database::conditional

Definition at line 917 of file DatabaseSQLTest.php.

◆ testDelete()

DatabaseSQLTest::testDelete (   $sql,
  $sqlText 
)

provideDelete Wikimedia\Rdbms\Database::delete

Definition at line 464 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testDeleteJoin()

DatabaseSQLTest::testDeleteJoin (   $sql,
  $sqlText 
)

provideDeleteJoin Wikimedia\Rdbms\Database::deleteJoin

Definition at line 533 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testDropNonExistingTable()

DatabaseSQLTest::testDropNonExistingTable ( )

Wikimedia\Rdbms\Database::dropTable.

Definition at line 1259 of file DatabaseSQLTest.php.

◆ testDropTable()

DatabaseSQLTest::testDropTable ( )

Wikimedia\Rdbms\Database::dropTable.

Definition at line 1250 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testImplicitTransactionRollback()

DatabaseSQLTest::testImplicitTransactionRollback ( )

\Wikimedia\Rdbms\Database::query

Definition at line 2056 of file DatabaseSQLTest.php.

References $e, and assertLastSql().

◆ testInsert()

DatabaseSQLTest::testInsert (   $sql,
  $sqlText 
)

provideInsert Wikimedia\Rdbms\Database::insert Wikimedia\Rdbms\Database::makeInsertOptions

Definition at line 581 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testInsertSelect()

DatabaseSQLTest::testInsertSelect (   $sql,
  $sqlTextNative,
  $sqlSelect,
  $sqlInsert 
)

provideInsertSelect Wikimedia\Rdbms\Database::insertSelect Wikimedia\Rdbms\Database::nativeInsertSelect

Definition at line 635 of file DatabaseSQLTest.php.

References assertLastSql(), and assertLastSqlDb().

◆ testInsertSelectBatching()

DatabaseSQLTest::testInsertSelectBatching ( )

Wikimedia\Rdbms\Database::insertSelect Wikimedia\Rdbms\Database::nativeInsertSelect.

Definition at line 747 of file DatabaseSQLTest.php.

References $rows, and assertLastSqlDb().

◆ testInvalidAtomicSectionEnded()

DatabaseSQLTest::testInvalidAtomicSectionEnded (   $method)

provideAtomicSectionMethodsForErrors \Wikimedia\Rdbms\Database::endAtomic \Wikimedia\Rdbms\Database::cancelAtomic

Definition at line 1948 of file DatabaseSQLTest.php.

◆ testLockForUpdate()

DatabaseSQLTest::testLockForUpdate (   $sql,
  $sqlText 
)

provideLockForUpdate Wikimedia\Rdbms\Database::lockForUpdate

Definition at line 263 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testMakeList()

DatabaseSQLTest::testMakeList (   $list,
  $mode,
  $sqlText 
)

provideMakeList Wikimedia\Rdbms\Database::makeList

Definition at line 1269 of file DatabaseSQLTest.php.

◆ testNativeReplace()

DatabaseSQLTest::testNativeReplace (   $sql,
  $sqlText 
)

provideNativeReplace Wikimedia\Rdbms\Database::nativeReplace

Definition at line 890 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testNoAtomicSection()

DatabaseSQLTest::testNoAtomicSection (   $method)

provideAtomicSectionMethodsForErrors \Wikimedia\Rdbms\Database::endAtomic \Wikimedia\Rdbms\Database::cancelAtomic

Definition at line 1931 of file DatabaseSQLTest.php.

◆ testNoAtomicSectionForCallback()

DatabaseSQLTest::testNoAtomicSectionForCallback ( )

\Wikimedia\Rdbms\Database::onAtomicSectionCancel

Definition at line 1982 of file DatabaseSQLTest.php.

◆ testPrematureClose1()

DatabaseSQLTest::testPrematureClose1 ( )

\Wikimedia\Rdbms\Database::close

Definition at line 2175 of file DatabaseSQLTest.php.

References $fname, assertLastSql(), and use.

◆ testPrematureClose2()

DatabaseSQLTest::testPrematureClose2 ( )

\Wikimedia\Rdbms\Database::close

Definition at line 2203 of file DatabaseSQLTest.php.

References $fname, assertLastSql(), and use.

◆ testPrematureClose3()

DatabaseSQLTest::testPrematureClose3 ( )

\Wikimedia\Rdbms\Database::close

Definition at line 2232 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testPrematureClose4()

DatabaseSQLTest::testPrematureClose4 ( )

\Wikimedia\Rdbms\Database::close

Definition at line 2255 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testReplace()

DatabaseSQLTest::testReplace (   $sql,
  $sqlText 
)

provideReplace Wikimedia\Rdbms\Database::replace

Definition at line 775 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testSelect()

DatabaseSQLTest::testSelect (   $sql,
  $sqlText 
)

provideSelect Wikimedia\Rdbms\Database::select Wikimedia\Rdbms\Database::selectSQLText Wikimedia\Rdbms\Database::tableNamesWithIndexClauseOrJOIN Wikimedia\Rdbms\Database::useIndexClause Wikimedia\Rdbms\Database::ignoreIndexClause Wikimedia\Rdbms\Database::makeSelectOptions Wikimedia\Rdbms\Database::makeOrderBy Wikimedia\Rdbms\Database::makeGroupByWithHaving Wikimedia\Rdbms\Database::selectFieldsOrOptionsAggregate Wikimedia\Rdbms\Database::selectOptionsIncludeLocking

Definition at line 52 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testSelectFieldValues()

DatabaseSQLTest::testSelectFieldValues ( )

Wikimedia\Rdbms\Database::selectFieldValues()

Definition at line 2270 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testSelectRowCount()

DatabaseSQLTest::testSelectRowCount (   $sql,
  $sqlText 
)

Wikimedia\Rdbms\Subquery provideSelectRowCount.

Parameters
array$sql
string$sqlText

Definition at line 317 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testSessionTempTables()

DatabaseSQLTest::testSessionTempTables ( )

Wikimedia\Rdbms\Database::registerTempTableWrite.

Definition at line 1348 of file DatabaseSQLTest.php.

◆ testTransactionCommit()

DatabaseSQLTest::testTransactionCommit ( )

Wikimedia\Rdbms\Database::commit Wikimedia\Rdbms\Database::doCommit.

Definition at line 1231 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testTransactionErrorState1()

DatabaseSQLTest::testTransactionErrorState1 ( )

\Wikimedia\Rdbms\DBTransactionStateError \Wikimedia\Rdbms\Database::assertTransactionStatus

Definition at line 1999 of file DatabaseSQLTest.php.

◆ testTransactionErrorState2()

DatabaseSQLTest::testTransactionErrorState2 ( )

\Wikimedia\Rdbms\Database::query

Definition at line 2011 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testTransactionRollback()

DatabaseSQLTest::testTransactionRollback ( )

Wikimedia\Rdbms\Database::rollback Wikimedia\Rdbms\Database::doRollback.

Definition at line 1241 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testTransactionStatementRollbackIgnoring()

DatabaseSQLTest::testTransactionStatementRollbackIgnoring ( )

\Wikimedia\Rdbms\Database::query

Definition at line 2110 of file DatabaseSQLTest.php.

References $e, assertLastSql(), and use.

◆ testUncancellableAtomicSection()

DatabaseSQLTest::testUncancellableAtomicSection ( )

\Wikimedia\Rdbms\Database::cancelAtomic

Definition at line 1965 of file DatabaseSQLTest.php.

◆ testUnionConditionPermutations()

DatabaseSQLTest::testUnionConditionPermutations (   $params,
  $expect 
)

provideUnionConditionPermutations Wikimedia\Rdbms\Database::unionConditionPermutations

Definition at line 1062 of file DatabaseSQLTest.php.

References $params.

◆ testUnionQueries()

DatabaseSQLTest::testUnionQueries (   $sql,
  $sqlText 
)

provideUnionQueries Wikimedia\Rdbms\Database::unionQueries

Definition at line 1025 of file DatabaseSQLTest.php.

◆ testUpdate()

DatabaseSQLTest::testUpdate (   $sql,
  $sqlText 
)

provideUpdate Wikimedia\Rdbms\Database::update Wikimedia\Rdbms\Database::makeUpdateOptions Wikimedia\Rdbms\Database::makeUpdateOptionsArray

Definition at line 412 of file DatabaseSQLTest.php.

References assertLastSql().

◆ testUpsert()

DatabaseSQLTest::testUpsert (   $sql,
  $sqlText 
)

provideUpsert Wikimedia\Rdbms\Database::upsert

Definition at line 497 of file DatabaseSQLTest.php.

References assertLastSql().

Member Data Documentation

◆ $database

DatabaseTestHelper Database DatabaseSQLTest::$database
private

Definition at line 21 of file DatabaseSQLTest.php.


The documentation for this class was generated from the following file: