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

Public Member Functions

 setUp ()
 tearDown ()
 test_backup_structure_construct ()
 test_backup_structure_wrong ()

Static Public Attributes

static $includecoverage
static $excludecoverage

Protected Attributes

 $testtables
 $forumid
 $contextid

Detailed Description

Unit test case the all the backup structure classes. Note: Uses database

Definition at line 39 of file testbackupstructures.php.


Member Function Documentation

setUp ( )

Definition at line 59 of file testbackupstructures.php.

Here is the call graph for this function:

tearDown ( )

Reimplemented from UnitTestCaseUsingDatabase.

Definition at line 72 of file testbackupstructures.php.

Backup structures tests (construction, definition and execution)

Create some new nested elements, both named 'dupetest1', and add them to alternative1 and alternative2 (not problem as far as the optigroup in not unique)

Definition at line 147 of file testbackupstructures.php.

Here is the call graph for this function:

Backup structures wrong tests (trying to do things the wrong way)

Definition at line 470 of file testbackupstructures.php.

Here is the call graph for this function:


Field Documentation

$contextid [protected]

Definition at line 56 of file testbackupstructures.php.

$excludecoverage [static]
Initial value:
 array(
        'backup/util/structure/simpletest'
    )

Definition at line 44 of file testbackupstructures.php.

$forumid [protected]

Definition at line 55 of file testbackupstructures.php.

$includecoverage [static]
Initial value:
 array(
        'backup/util/structure'
    )

Definition at line 41 of file testbackupstructures.php.

$testtables [protected]
Initial value:
 array(
        'lib'       => array(
            'files', 'rating'),
        'mod/forum' => array(
            'forum', 'forum_discussions', 'forum_posts',
            'forum_read'))

Definition at line 48 of file testbackupstructures.php.


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