MediaWiki
1.30.0
|
Test the parts of the Database abstract class that deal with creating SQL text. More...
Public Member Functions | |
testBuildConcat ( $stringList, $sqlText) | |
provideBuildConcat Wikimedia\Rdbms\Database::buildConcat More... | |
testBuildLike ( $array, $sqlText) | |
provideBuildLike Wikimedia\Rdbms\Database::buildLike Wikimedia\Rdbms\Database::escapeLikeInternal More... | |
testConditional ( $sql, $sqlText) | |
provideConditional Wikimedia\Rdbms\Database::conditional More... | |
testDelete ( $sql, $sqlText) | |
provideDelete Wikimedia\Rdbms\Database::delete More... | |
testDeleteJoin ( $sql, $sqlText) | |
provideDeleteJoin Wikimedia\Rdbms\Database::deleteJoin More... | |
testDropNonExistingTable () | |
Wikimedia\Rdbms\Database::dropTable. More... | |
testDropTable () | |
Wikimedia\Rdbms\Database::dropTable. More... | |
testInsert ( $sql, $sqlText) | |
provideInsert Wikimedia\Rdbms\Database::insert Wikimedia\Rdbms\Database::makeInsertOptions More... | |
testInsertSelect ( $sql, $sqlTextNative, $sqlSelect, $sqlInsert) | |
provideInsertSelect Wikimedia\Rdbms\Database::insertSelect Wikimedia\Rdbms\Database::nativeInsertSelect More... | |
testMakeList ( $list, $mode, $sqlText) | |
provideMakeList Wikimedia\Rdbms\Database::makeList More... | |
testNativeReplace ( $sql, $sqlText) | |
provideNativeReplace Wikimedia\Rdbms\Database::nativeReplace More... | |
testReplace ( $sql, $sqlText) | |
provideReplace Wikimedia\Rdbms\Database::replace More... | |
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 More... | |
testSessionTempTables () | |
Wikimedia\Rdbms\Database::registerTempTableOperation. More... | |
testTransactionCommit () | |
Wikimedia\Rdbms\Database::commit Wikimedia\Rdbms\Database::doCommit. More... | |
testTransactionRollback () | |
Wikimedia\Rdbms\Database::rollback Wikimedia\Rdbms\Database::doRollback. More... | |
testUnionConditionPermutations ( $params, $expect) | |
provideUnionConditionPermutations Wikimedia\Rdbms\Database::unionConditionPermutations More... | |
testUnionQueries ( $sql, $sqlText) | |
provideUnionQueries Wikimedia\Rdbms\Database::unionQueries More... | |
testUpdate ( $sql, $sqlText) | |
provideUpdate Wikimedia\Rdbms\Database::update Wikimedia\Rdbms\Database::makeUpdateOptions Wikimedia\Rdbms\Database::makeUpdateOptionsArray More... | |
testUpsert ( $sql, $sqlText) | |
provideUpsert Wikimedia\Rdbms\Database::upsert More... | |
Static Public Member Functions | |
static | provideBuildConcat () |
static | provideBuildLike () |
static | provideConditional () |
static | provideDelete () |
static | provideDeleteJoin () |
static | provideInsert () |
static | provideInsertSelect () |
static | provideMakeList () |
static | provideNativeReplace () |
static | provideReplace () |
static | provideSelect () |
static | provideUnionConditionPermutations () |
static | provideUnionQueries () |
static | provideUpdate () |
static | provideUpsert () |
Protected Member Functions | |
assertLastSql ( $sqlText) | |
assertLastSqlDb ( $sqlText, DatabaseTestHelper $db) | |
setUp () | |
Private Attributes | |
DatabaseTestHelper | $database |
Test the parts of the Database abstract class that deal with creating SQL text.
Definition at line 9 of file DatabaseSQLTest.php.
|
protected |
Definition at line 18 of file DatabaseSQLTest.php.
References database.
Referenced by testDelete(), testDeleteJoin(), testDropTable(), testInsert(), testInsertSelect(), testNativeReplace(), testReplace(), testSelect(), testTransactionCommit(), testTransactionRollback(), testUpdate(), and testUpsert().
|
protected |
Definition at line 25 of file DatabaseSQLTest.php.
References DatabaseTestHelper\getLastSqls().
Referenced by testInsertSelect().
|
static |
Definition at line 730 of file DatabaseSQLTest.php.
|
static |
Definition at line 754 of file DatabaseSQLTest.php.
|
static |
Definition at line 691 of file DatabaseSQLTest.php.
|
static |
Definition at line 268 of file DatabaseSQLTest.php.
|
static |
Definition at line 340 of file DatabaseSQLTest.php.
|
static |
Definition at line 386 of file DatabaseSQLTest.php.
|
static |
Definition at line 460 of file DatabaseSQLTest.php.
|
static |
Definition at line 1041 of file DatabaseSQLTest.php.
References LIST_AND, LIST_COMMA, LIST_NAMES, LIST_OR, and LIST_SET.
|
static |
Definition at line 665 of file DatabaseSQLTest.php.
|
static |
Definition at line 551 of file DatabaseSQLTest.php.
|
static |
Definition at line 52 of file DatabaseSQLTest.php.
References true.
|
static |
Definition at line 845 of file DatabaseSQLTest.php.
|
static |
Definition at line 798 of file DatabaseSQLTest.php.
|
static |
Definition at line 218 of file DatabaseSQLTest.php.
|
static |
Definition at line 303 of file DatabaseSQLTest.php.
|
protected |
Definition at line 13 of file DatabaseSQLTest.php.
References database.
DatabaseSQLTest::testBuildConcat | ( | $stringList, | |
$sqlText | |||
) |
provideBuildConcat Wikimedia\Rdbms\Database::buildConcat
Definition at line 724 of file DatabaseSQLTest.php.
References database.
DatabaseSQLTest::testBuildLike | ( | $array, | |
$sqlText | |||
) |
provideBuildLike Wikimedia\Rdbms\Database::buildLike Wikimedia\Rdbms\Database::escapeLikeInternal
Definition at line 748 of file DatabaseSQLTest.php.
References database.
DatabaseSQLTest::testConditional | ( | $sql, | |
$sqlText | |||
) |
provideConditional Wikimedia\Rdbms\Database::conditional
Definition at line 683 of file DatabaseSQLTest.php.
References database.
DatabaseSQLTest::testDelete | ( | $sql, | |
$sqlText | |||
) |
provideDelete Wikimedia\Rdbms\Database::delete
Definition at line 259 of file DatabaseSQLTest.php.
References assertLastSql(), and database.
DatabaseSQLTest::testDeleteJoin | ( | $sql, | |
$sqlText | |||
) |
provideDeleteJoin Wikimedia\Rdbms\Database::deleteJoin
Definition at line 328 of file DatabaseSQLTest.php.
References assertLastSql(), and database.
DatabaseSQLTest::testDropNonExistingTable | ( | ) |
Wikimedia\Rdbms\Database::dropTable.
Definition at line 1025 of file DatabaseSQLTest.php.
References database.
DatabaseSQLTest::testDropTable | ( | ) |
Wikimedia\Rdbms\Database::dropTable.
Definition at line 1016 of file DatabaseSQLTest.php.
References assertLastSql(), and database.
DatabaseSQLTest::testInsert | ( | $sql, | |
$sqlText | |||
) |
provideInsert Wikimedia\Rdbms\Database::insert Wikimedia\Rdbms\Database::makeInsertOptions
Definition at line 376 of file DatabaseSQLTest.php.
References assertLastSql(), and database.
DatabaseSQLTest::testInsertSelect | ( | $sql, | |
$sqlTextNative, | |||
$sqlSelect, | |||
$sqlInsert | |||
) |
provideInsertSelect Wikimedia\Rdbms\Database::insertSelect Wikimedia\Rdbms\Database::nativeInsertSelect
Definition at line 430 of file DatabaseSQLTest.php.
References assertLastSql(), assertLastSqlDb(), and database.
DatabaseSQLTest::testMakeList | ( | $list, | |
$mode, | |||
$sqlText | |||
) |
provideMakeList Wikimedia\Rdbms\Database::makeList
Definition at line 1035 of file DatabaseSQLTest.php.
References database.
DatabaseSQLTest::testNativeReplace | ( | $sql, | |
$sqlText | |||
) |
provideNativeReplace Wikimedia\Rdbms\Database::nativeReplace
Definition at line 656 of file DatabaseSQLTest.php.
References assertLastSql(), and database.
DatabaseSQLTest::testReplace | ( | $sql, | |
$sqlText | |||
) |
provideReplace Wikimedia\Rdbms\Database::replace
Definition at line 541 of file DatabaseSQLTest.php.
References assertLastSql(), and database.
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
Definition at line 40 of file DatabaseSQLTest.php.
References assertLastSql(), and database.
DatabaseSQLTest::testSessionTempTables | ( | ) |
Wikimedia\Rdbms\Database::registerTempTableOperation.
Definition at line 1114 of file DatabaseSQLTest.php.
References database.
DatabaseSQLTest::testTransactionCommit | ( | ) |
Wikimedia\Rdbms\Database::commit Wikimedia\Rdbms\Database::doCommit.
Definition at line 997 of file DatabaseSQLTest.php.
References assertLastSql(), and database.
DatabaseSQLTest::testTransactionRollback | ( | ) |
Wikimedia\Rdbms\Database::rollback Wikimedia\Rdbms\Database::doRollback.
Definition at line 1007 of file DatabaseSQLTest.php.
References assertLastSql(), and database.
DatabaseSQLTest::testUnionConditionPermutations | ( | $params, | |
$expect | |||
) |
provideUnionConditionPermutations Wikimedia\Rdbms\Database::unionConditionPermutations
Definition at line 828 of file DatabaseSQLTest.php.
DatabaseSQLTest::testUnionQueries | ( | $sql, | |
$sqlText | |||
) |
provideUnionQueries Wikimedia\Rdbms\Database::unionQueries
Definition at line 791 of file DatabaseSQLTest.php.
References database.
DatabaseSQLTest::testUpdate | ( | $sql, | |
$sqlText | |||
) |
provideUpdate Wikimedia\Rdbms\Database::update Wikimedia\Rdbms\Database::makeUpdateOptions Wikimedia\Rdbms\Database::makeUpdateOptionsArray
Definition at line 207 of file DatabaseSQLTest.php.
References assertLastSql(), and database.
DatabaseSQLTest::testUpsert | ( | $sql, | |
$sqlText | |||
) |
provideUpsert Wikimedia\Rdbms\Database::upsert
Definition at line 292 of file DatabaseSQLTest.php.
References assertLastSql(), and database.
|
private |
Definition at line 11 of file DatabaseSQLTest.php.