MediaWiki  REL1_19
DatabaseSqliteTest Class Reference

sqlite Database More...

Inheritance diagram for DatabaseSqliteTest:
Collaboration diagram for DatabaseSqliteTest:

List of all members.

Public Member Functions

 setUp ()
 testDeleteJoin ()
 testDuplicateTableStructure ()
 testDuplicateTableStructureVirtual ()
 testEntireSchema ()
 testReplaceVars ()
 testTableName ()
 testUpgrades ()
 Runs upgrades of older databases and compares results with current schema.

Public Attributes

 $db

Private Member Functions

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

Detailed Description

sqlite Database

Definition at line 24 of file DatabaseSqliteTest.php.


Member Function Documentation

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

Definition at line 42 of file DatabaseSqliteTest.php.

References $res.

Referenced by testDeleteJoin().

Here is the caller graph for this function:

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

Definition at line 289 of file DatabaseSqliteTest.php.

References $db, and $res.

Referenced by testUpgrades().

Here is the caller graph for this function:

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

Definition at line 300 of file DatabaseSqliteTest.php.

References $db, and $res.

Referenced by testUpgrades().

Here is the caller graph for this function:

DatabaseSqliteTest::getTables ( db) [private]

Definition at line 268 of file DatabaseSqliteTest.php.

References $db, and $t.

Referenced by testUpgrades().

Here is the caller graph for this function:

DatabaseSqliteTest::prepareDB ( version) [private]

Definition at line 253 of file DatabaseSqliteTest.php.

References $db, $IP, and DatabaseUpdater\newForDB().

Referenced by testUpgrades().

Here is the call graph for this function:

Here is the caller graph for this function:

DatabaseSqliteTest::replaceVars ( sql) [private]

Definition at line 37 of file DatabaseSqliteTest.php.

Referenced by testReplaceVars().

Here is the caller graph for this function:

Definition at line 27 of file DatabaseSqliteTest.php.

References Sqlite\isPresent().

Here is the call graph for this function:

Definition at line 144 of file DatabaseSqliteTest.php.

References $db, $res, and assertResultIs().

Here is the call graph for this function:

Definition at line 171 of file DatabaseSqliteTest.php.

References $IP, $result, and Sqlite\checkSqlSyntax().

Here is the call graph for this function:

Definition at line 55 of file DatabaseSqliteTest.php.

References replaceVars().

Here is the call graph for this function:

Definition at line 93 of file DatabaseSqliteTest.php.

References $db.

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

Todo:
: currently only checks list of tables

Definition at line 185 of file DatabaseSqliteTest.php.

References $db, $fullName, $IP, $version, $wgVersion, getColumns(), getIndexes(), getTables(), and prepareDB().

Here is the call graph for this function:


Member Data Documentation


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