|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| setUp () | |
| tearDown () | |
| test_table_exists () | |
| test_create_table () | |
| test_drop_table () | |
| test_rename_table () | |
| test_field_exists () | |
| test_add_field () | |
| test_drop_field () | |
| test_change_field_type () | |
| test_change_field_precision () | |
| testChangeFieldSign () | |
| testChangeFieldNullability () | |
| testChangeFieldDefault () | |
| testAddUniqueIndex () | |
| testAddNonUniqueIndex () | |
| testFindIndexName () | |
| testDropIndex () | |
| testAddUniqueKey () | |
| testAddForeignUniqueKey () | |
| testDropKey () | |
| testAddForeignKey () | |
| testDropForeignKey () | |
| test_drop_enum_from_field () | |
| testRenameField () | |
| testIndexExists () | |
| testFindKeyName () | |
| testDeleteTablesFromXmldbFile () | |
| testInstallFromXmldbFile () | |
| test_temp_tables () | |
| test_concurrent_temp_tables () | |
| test_reset_sequence () | |
| test_reserved_words () | |
| test_index_max_bytes () | |
| test_index_composed_max_bytes () | |
| test_char_size_limit () | |
Static Public Attributes | |
| static | $includecoverage = array('lib/ddl') |
| static | $excludecoverage = array('lib/ddl/simpletest') |
Definition at line 13 of file testddl.php.
| setUp | ( | ) |
| tearDown | ( | ) |
| test_add_field | ( | ) |
Test behaviour of add_field()
add one not null field without specifying default value (throws ddl_exception)
add one existing field (throws ddl_exception)
add one integer field and check it
add one numeric field and check it
add one float field and check it (not official type - must work as number)
add one char field and check it
add one text field and check it
add one binary field and check it
Definition at line 444 of file testddl.php.

Test behaviour of test_change_field_precision()
Definition at line 803 of file testddl.php.

Test behaviour of change_field_type()
Definition at line 643 of file testddl.php.

Test behaviour of create_table()
Definition at line 220 of file testddl.php.

Test behaviour of drop_enum_from_field() and related functions (find_check_constraint_name and check_constraint_exists). Needed to be able to drop existing "enum" fields in the upgrade from 1.9 to 2.0, will be completely deleted for Moodle 2.1
Because we already have dropped support for creation of enum fields in 2.0, we are going to create them here "manually" (hardcoded DB-dependent SQL). Just to be able to test the find and drop functions properly.
TODO: Drop this tests completely from Moodle 2.1
Definition at line 1160 of file testddl.php.

| test_drop_field | ( | ) |
Test behaviour of drop_field()
Definition at line 585 of file testddl.php.

| test_drop_table | ( | ) |
Test behaviour of drop_table()
throw exception
Definition at line 316 of file testddl.php.

Test behaviour of field_exists()
Definition at line 380 of file testddl.php.

Test behaviour of rename_table()
Definition at line 356 of file testddl.php.

Test behaviour of table_exists()
Definition at line 173 of file testddl.php.

| test_temp_tables | ( | ) |
Definition at line 1125 of file testddl.php.
Definition at line 1101 of file testddl.php.
Definition at line 1034 of file testddl.php.
| testAddUniqueKey | ( | ) |
Definition at line 1092 of file testddl.php.
Definition at line 904 of file testddl.php.
Definition at line 1136 of file testddl.php.
| testDropIndex | ( | ) |
| testDropKey | ( | ) |
Definition at line 1112 of file testddl.php.
| testFindKeyName | ( | ) |
| testIndexExists | ( | ) |
Definition at line 1233 of file testddl.php.
| testRenameField | ( | ) |
$excludecoverage = array('lib/ddl/simpletest') [static] |
Definition at line 18 of file testddl.php.
$includecoverage = array('lib/ddl') [static] |
Definition at line 17 of file testddl.php.