MediaWiki  REL1_22
DatabaseSQLTest Class Reference

Test the abstract database layer This is a non DBMS depending test. More...

Inheritance diagram for DatabaseSQLTest:
Collaboration diagram for DatabaseSQLTest:

List of all members.

Public Member Functions

 testBuildConcat ($stringList, $sqlText)
 provideBuildConcat DatabaseBase::buildConcat
 testBuildLike ($array, $sqlText)
 provideBuildLike DatabaseBase::buildLike
 testConditional ($sql, $sqlText)
 provideConditional DatabaseBase::conditional
 testDelete ($sql, $sqlText)
 provideDelete DatabaseBase::delete
 testDeleteJoin ($sql, $sqlText)
 provideDeleteJoin DatabaseBase::deleteJoin
 testDropNonExistingTable ()
 DatabaseBase::dropTable
 testDropTable ()
 DatabaseBase::dropTable
 testInsert ($sql, $sqlText)
 provideInsert DatabaseBase::insert
 testInsertSelect ($sql, $sqlText)
 provideInsertSelect DatabaseBase::insertSelect
 testNativeReplace ($sql, $sqlText)
 provideNativeReplace DatabaseBase::nativeReplace
 testReplace ($sql, $sqlText)
 provideReplace DatabaseBase::replace
 testSelect ($sql, $sqlText)
 provideSelect DatabaseBase::select
 testTransactionCommit ()
 DatabaseBase::commit
 testTransactionRollback ()
 DatabaseBase::rollback
 testUnionQueries ($sql, $sqlText)
 provideUnionQueries DatabaseBase::unionQueries
 testUpdate ($sql, $sqlText)
 provideUpdate DatabaseBase::update
 testUpsert ($sql, $sqlText)
 provideUpsert DatabaseBase::upsert

Static Public Member Functions

static provideBuildConcat ()
static provideBuildLike ()
static provideConditional ()
static provideDelete ()
static provideDeleteJoin ()
static provideInsert ()
static provideInsertSelect ()
static provideNativeReplace ()
static provideReplace ()
static provideSelect ()
static provideUnionQueries ()
static provideUpdate ()
static provideUpsert ()

Protected Member Functions

 assertLastSql ($sqlText)
 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.

Private Attributes

DatabaseTestHelper $database

Detailed Description

Test the abstract database layer This is a non DBMS depending test.

Definition at line 7 of file DatabaseSQLTest.php.


Member Function Documentation

DatabaseSQLTest::assertLastSql ( sqlText) [protected]

Definition at line 18 of file DatabaseSQLTest.php.

References database.

Definition at line 604 of file DatabaseSQLTest.php.

References array().

static DatabaseSQLTest::provideBuildLike ( ) [static]

Definition at line 627 of file DatabaseSQLTest.php.

References array().

Definition at line 565 of file DatabaseSQLTest.php.

References array().

static DatabaseSQLTest::provideDelete ( ) [static]

Definition at line 192 of file DatabaseSQLTest.php.

References array().

Definition at line 264 of file DatabaseSQLTest.php.

References array().

static DatabaseSQLTest::provideInsert ( ) [static]

Definition at line 309 of file DatabaseSQLTest.php.

References array().

Definition at line 365 of file DatabaseSQLTest.php.

References array().

Definition at line 539 of file DatabaseSQLTest.php.

References array().

static DatabaseSQLTest::provideReplace ( ) [static]

Definition at line 425 of file DatabaseSQLTest.php.

References array().

static DatabaseSQLTest::provideSelect ( ) [static]

Definition at line 41 of file DatabaseSQLTest.php.

References array().

Definition at line 659 of file DatabaseSQLTest.php.

References array().

static DatabaseSQLTest::provideUpdate ( ) [static]

Definition at line 142 of file DatabaseSQLTest.php.

References array().

static DatabaseSQLTest::provideUpsert ( ) [static]

Definition at line 227 of file DatabaseSQLTest.php.

References array().

DatabaseSQLTest::setUp ( ) [protected]

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiTestCase.

Definition at line 13 of file DatabaseSQLTest.php.

References database.

DatabaseSQLTest::testBuildConcat ( stringList,
sqlText 
)

provideBuildConcat DatabaseBase::buildConcat

Definition at line 598 of file DatabaseSQLTest.php.

DatabaseSQLTest::testBuildLike ( array,
sqlText 
)

provideBuildLike DatabaseBase::buildLike

Definition at line 621 of file DatabaseSQLTest.php.

DatabaseSQLTest::testConditional ( sql,
sqlText 
)

provideConditional DatabaseBase::conditional

Definition at line 557 of file DatabaseSQLTest.php.

DatabaseSQLTest::testDelete ( sql,
sqlText 
)

provideDelete DatabaseBase::delete

Definition at line 183 of file DatabaseSQLTest.php.

DatabaseSQLTest::testDeleteJoin ( sql,
sqlText 
)

provideDeleteJoin DatabaseBase::deleteJoin

Definition at line 252 of file DatabaseSQLTest.php.

DatabaseSQLTest::testInsert ( sql,
sqlText 
)

provideInsert DatabaseBase::insert

Definition at line 299 of file DatabaseSQLTest.php.

DatabaseSQLTest::testInsertSelect ( sql,
sqlText 
)

provideInsertSelect DatabaseBase::insertSelect

Definition at line 352 of file DatabaseSQLTest.php.

DatabaseSQLTest::testNativeReplace ( sql,
sqlText 
)

provideNativeReplace DatabaseBase::nativeReplace

Definition at line 530 of file DatabaseSQLTest.php.

DatabaseSQLTest::testReplace ( sql,
sqlText 
)

provideReplace DatabaseBase::replace

Definition at line 415 of file DatabaseSQLTest.php.

DatabaseSQLTest::testSelect ( sql,
sqlText 
)

provideSelect DatabaseBase::select

Definition at line 29 of file DatabaseSQLTest.php.

DatabaseSQLTest::testUnionQueries ( sql,
sqlText 
)

provideUnionQueries DatabaseBase::unionQueries

Definition at line 652 of file DatabaseSQLTest.php.

DatabaseSQLTest::testUpdate ( sql,
sqlText 
)

provideUpdate DatabaseBase::update

Definition at line 131 of file DatabaseSQLTest.php.

DatabaseSQLTest::testUpsert ( sql,
sqlText 
)

provideUpsert DatabaseBase::upsert

Definition at line 216 of file DatabaseSQLTest.php.


Member Data Documentation

DatabaseTestHelper DatabaseSQLTest::$database [private]

Definition at line 11 of file DatabaseSQLTest.php.


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