Moodle  2.2.1
http://www.collinsharper.com
ddl_test Class Reference
Inheritance diagram for ddl_test:
Collaboration diagram for ddl_test:

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')

Detailed Description

Definition at line 13 of file testddl.php.


Member Function Documentation

setUp ( )

Definition at line 20 of file testddl.php.

Here is the call graph for this function:

tearDown ( )

Definition at line 110 of file testddl.php.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Test behaviour of test_change_field_precision()

Definition at line 803 of file testddl.php.

Here is the call graph for this function:

Test behaviour of change_field_type()

Definition at line 643 of file testddl.php.

Here is the call graph for this function:

Definition at line 1599 of file testddl.php.

Here is the call graph for this function:

Definition at line 1409 of file testddl.php.

Here is the call graph for this function:

Test behaviour of create_table()

Definition at line 220 of file testddl.php.

Here is the call graph for this function:

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.

Here is the call graph for this function:

Test behaviour of drop_field()

Definition at line 585 of file testddl.php.

Here is the call graph for this function:

Test behaviour of drop_table()

throw exception

Definition at line 316 of file testddl.php.

Here is the call graph for this function:

Test behaviour of field_exists()

Definition at line 380 of file testddl.php.

Here is the call graph for this function:

Definition at line 1539 of file testddl.php.

Here is the call graph for this function:

Definition at line 1490 of file testddl.php.

Here is the call graph for this function:

Test behaviour of rename_table()

Definition at line 356 of file testddl.php.

Here is the call graph for this function:

Definition at line 1485 of file testddl.php.

Here is the call graph for this function:

Definition at line 1454 of file testddl.php.

Here is the call graph for this function:

Test behaviour of table_exists()

Definition at line 173 of file testddl.php.

Here is the call graph for this function:

Definition at line 1338 of file testddl.php.

Here is the call graph for this function:

Definition at line 1125 of file testddl.php.

Definition at line 1101 of file testddl.php.

Definition at line 1034 of file testddl.php.

Definition at line 1002 of file testddl.php.

Here is the call graph for this function:

Definition at line 1092 of file testddl.php.

Definition at line 965 of file testddl.php.

Here is the call graph for this function:

Definition at line 918 of file testddl.php.

Here is the call graph for this function:

Definition at line 904 of file testddl.php.

Definition at line 1248 of file testddl.php.

Here is the call graph for this function:

Definition at line 1136 of file testddl.php.

Definition at line 1060 of file testddl.php.

Here is the call graph for this function:

Definition at line 1112 of file testddl.php.

Definition at line 1043 of file testddl.php.

Here is the call graph for this function:

Definition at line 1237 of file testddl.php.

Here is the call graph for this function:

Definition at line 1233 of file testddl.php.

Definition at line 1296 of file testddl.php.

Here is the call graph for this function:

Definition at line 1216 of file testddl.php.

Here is the call graph for this function:


Field Documentation

$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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations