ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 613 of file ilDatabaseImplementationBaseTest.php.
References $ilDB, and $ildb_backup.
Referenced by testModifyTableColumn(), and testRenameTableColumn().
|
protected |
\ilDBInterface | $ilDBInterface |
Definition at line 605 of file ilDatabaseImplementationBaseTest.php.
References $ilDB.
Referenced by testModifyTableColumn(), and testRenameTableColumn().
|
finalprotected |
\ilDBInterface | $ilDBInterface |
Definition at line 127 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 147 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 624 of file ilDatabaseImplementationBaseTest.php.
Referenced by testConnection(), testCreateDatabase(), testModifyTableColumn(), and testRenameTableColumn().
|
protected |
$sql |
Definition at line 634 of file ilDatabaseImplementationBaseTest.php.
References getTableName().
|
protected |
Definition at line 73 of file ilDatabaseImplementationBaseTest.php.
References $db, $DIC, $ilDB, connect(), getDBInstance(), ilDBConstants\TYPE_PDO_POSTGRE, and ilDBConstants\TYPE_POSTGRES.
|
protected |
Definition at line 153 of file ilDatabaseImplementationBaseTest.php.
References getDBInstance().
ilDatabaseImplementationBaseTest::testChangeTableName | ( | ) |
testConnection
Definition at line 500 of file ilDatabaseImplementationBaseTest.php.
References getTableName().
ilDatabaseImplementationBaseTest::testConnection | ( | ) |
Definition at line 180 of file ilDatabaseImplementationBaseTest.php.
References $query, connect(), getDBInstance(), getTableName(), ilDBConstants\MODULE_MANAGER, and normalizeSQL().
ilDatabaseImplementationBaseTest::testConstraints | ( | ) |
Definition at line 492 of file ilDatabaseImplementationBaseTest.php.
ilDatabaseImplementationBaseTest::testCreateDatabase | ( | ) |
testConnection
Definition at line 200 of file ilDatabaseImplementationBaseTest.php.
References $data, $res, getTableName(), normalizeSQL(), ilDBConstants\TYPE_PDO_POSTGRE, and ilDBConstants\TYPE_POSTGRES.
ilDatabaseImplementationBaseTest::testDBAnalyser | ( | ) |
testConnection
Definition at line 446 of file ilDatabaseImplementationBaseTest.php.
References $def, getTableName(), and ilDBConstants\MODULE_REVERSE.
ilDatabaseImplementationBaseTest::testDropSequence | ( | ) |
testConnection
Definition at line 482 of file ilDatabaseImplementationBaseTest.php.
References getTableName().
ilDatabaseImplementationBaseTest::testDropTable | ( | ) |
testConnection
Definition at line 592 of file ilDatabaseImplementationBaseTest.php.
References getTableName().
ilDatabaseImplementationBaseTest::testIndices | ( | ) |
testConnection
Definition at line 329 of file ilDatabaseImplementationBaseTest.php.
References getTableName().
ilDatabaseImplementationBaseTest::testInsertNative | ( | ) |
testConnection
Definition at line 226 of file ilDatabaseImplementationBaseTest.php.
References $id, ilDatabaseCommonTestsDataOutputs\$output_after_native_input, $values, and getTableName().
ilDatabaseImplementationBaseTest::testInsertSQL | ( | ) |
testConnection
Definition at line 282 of file ilDatabaseImplementationBaseTest.php.
References ilDatabaseCommonTestsDataOutputs\$insert_sql_output, and getTableName().
ilDatabaseImplementationBaseTest::testInstance | ( | ) |
Test instance implements ilDBInterface and is ilDBInnoDB.
Definition at line 174 of file ilDatabaseImplementationBaseTest.php.
ilDatabaseImplementationBaseTest::testLockTables | ( | ) |
testConnection
Definition at line 562 of file ilDatabaseImplementationBaseTest.php.
References ilDBConstants\LOCK_WRITE.
ilDatabaseImplementationBaseTest::testModifyTableColumn | ( | ) |
testConnection
Definition at line 533 of file ilDatabaseImplementationBaseTest.php.
References $data, $res, changeBack(), changeGlobal(), getTableName(), normalizeSQL(), ilDBConstants\TYPE_PDO_POSTGRE, and ilDBConstants\TYPE_POSTGRES.
ilDatabaseImplementationBaseTest::testQueryUtils | ( | ) |
Definition at line 240 of file ilDatabaseImplementationBaseTest.php.
ilDatabaseImplementationBaseTest::testRenameTableColumn | ( | ) |
testConnection
Definition at line 512 of file ilDatabaseImplementationBaseTest.php.
References $data, $res, changeBack(), changeGlobal(), getTableName(), normalizeSQL(), ilDBConstants\TYPE_PDO_POSTGRE, and ilDBConstants\TYPE_POSTGRES.
ilDatabaseImplementationBaseTest::testSelectUsrData | ( | ) |
Definition at line 298 of file ilDatabaseImplementationBaseTest.php.
References $data, Sabre\VObject\$output, $query, $result, ilDatabaseCommonTestsDataOutputs\$select_usr_data_2_output, ilDatabaseCommonTestsDataOutputs\$select_usr_data_output, and ilDBPdoFieldDefinition\T_INTEGER.
ilDatabaseImplementationBaseTest::testSequences | ( | ) |
testConnection
Definition at line 374 of file ilDatabaseImplementationBaseTest.php.
References ilDatabaseCommonTestsDataOutputs\$table_constraint_definition_output, ilDatabaseCommonTestsDataOutputs\$table_index_definition_output, getTableName(), ilDBConstants\MODULE_MANAGER, and ilDBConstants\MODULE_REVERSE.
ilDatabaseImplementationBaseTest::testTableColums | ( | ) |
testConnection
Definition at line 359 of file ilDatabaseImplementationBaseTest.php.
References getTableName().
ilDatabaseImplementationBaseTest::testTransactions | ( | ) |
testConnection
Definition at line 578 of file ilDatabaseImplementationBaseTest.php.
ilDatabaseImplementationBaseTest::testUpdateNative | ( | ) |
testConnection
Definition at line 257 of file ilDatabaseImplementationBaseTest.php.
References $id, ilDatabaseCommonTestsDataOutputs\$output_after_native_update, 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.