ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
TestCase for the ilDatabaseCommonTest. More...
Public Member Functions | |
testInstance () | |
Test instance implements ilDBInterface and is ilDBInnoDB. More... | |
testConnection () | |
testCreateDatabase () | |
testConnection More... | |
testInsertNative () | |
testConnection More... | |
testQueryUtils () | |
testUpdateNative () | |
testConnection More... | |
testInsertSQL () | |
testConnection More... | |
testSelectUsrData () | |
testIndices () | |
testConnection More... | |
testTableColums () | |
testConnection More... | |
testSequences () | |
testConnection More... | |
testDBAnalyser () | |
testConnection More... | |
testDropSequence () | |
testConnection More... | |
testConstraints () | |
testChangeTableName () | |
testConnection More... | |
testRenameTableColumn () | |
testConnection More... | |
testModifyTableColumn () | |
testConnection More... | |
testLockTables () | |
testConnection More... | |
testTransactions () | |
testConnection More... | |
testDropTable () | |
testConnection More... | |
Data Fields | |
const | INDEX_NAME = 'i1' |
const | TABLE_NAME = 'il_ut_en' |
const | CREATE_TABLE_ARRAY_KEY = 'create table' |
Protected Member Functions | |
setUp () | |
getIniFile () | |
connect (ilDBInterface $ilDBInterface, $missing_ini=false) | |
getTableName () | |
tearDown () | |
getDBInstance () | |
changeGlobal (ilDBInterface $ilDBInterface) | |
changeBack () | |
normalizeSQL ($sql) | |
normalizetableName ($sql) | |
Protected Attributes | |
$error_reporting_backup = 0 | |
$backupGlobals = false | |
$db | |
$mock | |
$outputs | |
$ildb_backup | |
$type = '' | |
$ini_file = '/var/www/ilias/data/trunk/client.ini.php' | |
$set_up = false | |
TestCase for the ilDatabaseCommonTest.
Definition at line 30 of file ilDatabaseImplementationBaseTest.php.
|
protected |
Definition at line 590 of file ilDatabaseImplementationBaseTest.php.
References $ilDB, and $ildb_backup.
Referenced by testModifyTableColumn(), and testRenameTableColumn().
|
protected |
\ilDBInterface | $ilDBInterface |
Definition at line 583 of file ilDatabaseImplementationBaseTest.php.
References $ilDB.
Referenced by testModifyTableColumn(), and testRenameTableColumn().
|
finalprotected |
\ilDBInterface | $ilDBInterface |
Definition at line 126 of file ilDatabaseImplementationBaseTest.php.
References ilDBInterface\connect(), getIniFile(), and ilDBInterface\initFromIniFile().
Referenced by setUp(), and testConnection().
|
abstractprotected |
Referenced by setUp(), tearDown(), and testConnection().
|
protected |
Definition at line 117 of file ilDatabaseImplementationBaseTest.php.
References $ini_file.
Referenced by connect().
|
protected |
Definition at line 145 of file ilDatabaseImplementationBaseTest.php.
Referenced by normalizetableName(), testChangeTableName(), testConnection(), testCreateDatabase(), testDBAnalyser(), testDropSequence(), testDropTable(), testIndices(), testInsertNative(), testInsertSQL(), testModifyTableColumn(), testRenameTableColumn(), testSequences(), testTableColums(), and testUpdateNative().
|
protected |
$sql |
Definition at line 600 of file ilDatabaseImplementationBaseTest.php.
Referenced by testConnection(), testCreateDatabase(), testModifyTableColumn(), and testRenameTableColumn().
|
protected |
$sql |
Definition at line 609 of file ilDatabaseImplementationBaseTest.php.
References getTableName().
|
protected |
Definition at line 73 of file ilDatabaseImplementationBaseTest.php.
References $db, $DIC, $ilDB, connect(), defined, getDBInstance(), ilDBConstants\TYPE_PDO_POSTGRE, and ilDBConstants\TYPE_POSTGRES.
|
protected |
Definition at line 150 of file ilDatabaseImplementationBaseTest.php.
References getDBInstance().
ilDatabaseImplementationBaseTest::testChangeTableName | ( | ) |
testConnection
Definition at line 484 of file ilDatabaseImplementationBaseTest.php.
References getTableName().
ilDatabaseImplementationBaseTest::testConnection | ( | ) |
Definition at line 175 of file ilDatabaseImplementationBaseTest.php.
References $query, array, connect(), getDBInstance(), getTableName(), ilDBConstants\MODULE_MANAGER, and normalizeSQL().
ilDatabaseImplementationBaseTest::testConstraints | ( | ) |
Definition at line 476 of file ilDatabaseImplementationBaseTest.php.
ilDatabaseImplementationBaseTest::testCreateDatabase | ( | ) |
testConnection
Definition at line 197 of file ilDatabaseImplementationBaseTest.php.
References $data, $res, array, getTableName(), normalizeSQL(), ilDBConstants\TYPE_PDO_POSTGRE, and ilDBConstants\TYPE_POSTGRES.
ilDatabaseImplementationBaseTest::testDBAnalyser | ( | ) |
testConnection
Definition at line 432 of file ilDatabaseImplementationBaseTest.php.
References array, getTableName(), and ilDBConstants\MODULE_REVERSE.
ilDatabaseImplementationBaseTest::testDropSequence | ( | ) |
testConnection
Definition at line 467 of file ilDatabaseImplementationBaseTest.php.
References getTableName().
ilDatabaseImplementationBaseTest::testDropTable | ( | ) |
testConnection
Definition at line 571 of file ilDatabaseImplementationBaseTest.php.
References getTableName().
ilDatabaseImplementationBaseTest::testIndices | ( | ) |
testConnection
Definition at line 320 of file ilDatabaseImplementationBaseTest.php.
References array, and getTableName().
ilDatabaseImplementationBaseTest::testInsertNative | ( | ) |
testConnection
Definition at line 222 of file ilDatabaseImplementationBaseTest.php.
References ilDatabaseCommonTestsDataOutputs\$output_after_native_input, and getTableName().
ilDatabaseImplementationBaseTest::testInsertSQL | ( | ) |
testConnection
Definition at line 275 of file ilDatabaseImplementationBaseTest.php.
References ilDatabaseCommonTestsDataOutputs\$insert_sql_output, and getTableName().
ilDatabaseImplementationBaseTest::testInstance | ( | ) |
Test instance implements ilDBInterface and is ilDBInnoDB.
Definition at line 170 of file ilDatabaseImplementationBaseTest.php.
ilDatabaseImplementationBaseTest::testLockTables | ( | ) |
testConnection
Definition at line 543 of file ilDatabaseImplementationBaseTest.php.
References array, and ilDBConstants\LOCK_WRITE.
ilDatabaseImplementationBaseTest::testModifyTableColumn | ( | ) |
testConnection
Definition at line 515 of file ilDatabaseImplementationBaseTest.php.
References $data, $res, array, changeBack(), changeGlobal(), getTableName(), normalizeSQL(), ilDBConstants\TYPE_PDO_POSTGRE, and ilDBConstants\TYPE_POSTGRES.
ilDatabaseImplementationBaseTest::testQueryUtils | ( | ) |
Definition at line 235 of file ilDatabaseImplementationBaseTest.php.
References array.
ilDatabaseImplementationBaseTest::testRenameTableColumn | ( | ) |
testConnection
Definition at line 495 of file ilDatabaseImplementationBaseTest.php.
References $data, $res, array, changeBack(), changeGlobal(), getTableName(), normalizeSQL(), ilDBConstants\TYPE_PDO_POSTGRE, and ilDBConstants\TYPE_POSTGRES.
ilDatabaseImplementationBaseTest::testSelectUsrData | ( | ) |
Definition at line 290 of file ilDatabaseImplementationBaseTest.php.
References $data, $output, $query, $result, ilDatabaseCommonTestsDataOutputs\$select_usr_data_2_output, ilDatabaseCommonTestsDataOutputs\$select_usr_data_output, array, object, and ilDBPdoFieldDefinition\T_INTEGER.
ilDatabaseImplementationBaseTest::testSequences | ( | ) |
testConnection
Definition at line 363 of file ilDatabaseImplementationBaseTest.php.
References ilDatabaseCommonTestsDataOutputs\$table_constraint_definition_output, ilDatabaseCommonTestsDataOutputs\$table_index_definition_output, array, getTableName(), ilDBConstants\MODULE_MANAGER, and ilDBConstants\MODULE_REVERSE.
ilDatabaseImplementationBaseTest::testTableColums | ( | ) |
testConnection
Definition at line 349 of file ilDatabaseImplementationBaseTest.php.
References array, and getTableName().
ilDatabaseImplementationBaseTest::testTransactions | ( | ) |
testConnection
Definition at line 558 of file ilDatabaseImplementationBaseTest.php.
ilDatabaseImplementationBaseTest::testUpdateNative | ( | ) |
testConnection
Definition at line 251 of file ilDatabaseImplementationBaseTest.php.
References ilDatabaseCommonTestsDataOutputs\$output_after_native_update, array, and getTableName().
|
protected |
Definition at line 42 of file ilDatabaseImplementationBaseTest.php.
|
protected |
Definition at line 46 of file ilDatabaseImplementationBaseTest.php.
Referenced by setUp().
|
protected |
Definition at line 38 of file ilDatabaseImplementationBaseTest.php.
|
protected |
Definition at line 58 of file ilDatabaseImplementationBaseTest.php.
Referenced by changeBack().
|
protected |
Definition at line 66 of file ilDatabaseImplementationBaseTest.php.
Referenced by getIniFile().
|
protected |
Definition at line 50 of file ilDatabaseImplementationBaseTest.php.
|
protected |
Definition at line 54 of file ilDatabaseImplementationBaseTest.php.
|
protected |
Definition at line 70 of file ilDatabaseImplementationBaseTest.php.
|
protected |
Definition at line 62 of file ilDatabaseImplementationBaseTest.php.
const ilDatabaseImplementationBaseTest::CREATE_TABLE_ARRAY_KEY = 'create table' |
Definition at line 34 of file ilDatabaseImplementationBaseTest.php.
const ilDatabaseImplementationBaseTest::INDEX_NAME = 'i1' |
Definition at line 32 of file ilDatabaseImplementationBaseTest.php.
const ilDatabaseImplementationBaseTest::TABLE_NAME = 'il_ut_en' |
Definition at line 33 of file ilDatabaseImplementationBaseTest.php.