MediaWiki  REL1_22
DatabaseSqliteTest Class Reference

sqlite Database medium More...

Inheritance diagram for DatabaseSqliteTest:
Collaboration diagram for DatabaseSqliteTest:

List of all members.

Public Member Functions

 testAddQuotes ($value, $expected)
 provideAddQuotes() DatabaseSqlite::addQuotes
 testCaseInsensitiveLike ()
 testDeleteJoin ()
 DatabaseSqlite::deleteJoin
 testDuplicateTableStructure ()
 DatabaseSqlite::duplicateTableStructure
 testDuplicateTableStructureVirtual ()
 DatabaseSqlite::duplicateTableStructure
 testEntireSchema ()
 testInsertIdType ()
 DatabaseSqlite::insertId
 testReplaceVars ()
 DatabaseSqlite::replaceVars
 testTableName ()
 DatabaseSqlite::tableName
 testUpgrades ()
 Runs upgrades of older databases and compares results with current schema.

Static Public Member Functions

static provideAddQuotes ()

Public Attributes

MockDatabaseSqlite $db

Protected Member Functions

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

Private Member Functions

 assertResultIs ($expected, $res)
 getColumns ($db, $table)
 getIndexes ($db, $table)
 getTables ($db)
 prepareDB ($version)
 replaceVars ($sql)

Detailed Description

sqlite Database medium

Definition at line 29 of file DatabaseSqliteTest.php.


Member Function Documentation

DatabaseSqliteTest::assertResultIs ( expected,
res 
) [private]

Definition at line 52 of file DatabaseSqliteTest.php.

References $key, $res, $value, and as.

DatabaseSqliteTest::getColumns ( db,
table 
) [private]

Definition at line 383 of file DatabaseSqliteTest.php.

References $db, $res, array(), as, and MockDatabaseSqlite\query().

DatabaseSqliteTest::getIndexes ( db,
table 
) [private]

Definition at line 395 of file DatabaseSqliteTest.php.

References $db, $res, array(), as, and MockDatabaseSqlite\query().

DatabaseSqliteTest::getTables ( db) [private]

Definition at line 360 of file DatabaseSqliteTest.php.

References $db, $t, array(), as, and DatabaseSqlite\listTables().

DatabaseSqliteTest::prepareDB ( version) [private]

Definition at line 65 of file DatabaseSqliteTest.php.

References array().

DatabaseSqliteTest::replaceVars ( sql) [private]

Definition at line 47 of file DatabaseSqliteTest.php.

DatabaseSqliteTest::setUp ( ) [protected]

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

Reimplemented from MediaWikiTestCase.

Definition at line 35 of file DatabaseSqliteTest.php.

References Sqlite\isPresent().

Runs upgrades of older databases and compares results with current schema.

Todo:
Currently only checks list of tables

Definition at line 257 of file DatabaseSqliteTest.php.


Member Data Documentation

MockDatabaseSqlite DatabaseSqliteTest::$db

Reimplemented from MediaWikiTestCase.

Definition at line 33 of file DatabaseSqliteTest.php.

Referenced by getColumns(), getIndexes(), getTables(), prepareDB(), and testCaseInsensitiveLike().


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