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

Public Member Functions

 setUp ()
 tearDown ()
 test_cm_null_initially ()
 test_set_cm ()
 test_cannot_set_activity_record_before_cm ()
 test_setting_cm_sets_context ()
 test_activity_record_loaded_if_not_set ()
 test_set_activity_record ()
 test_cannot_set_inconsistent_activity_record_course ()
 test_cannot_set_inconsistent_activity_record_instance ()
 test_setting_cm_sets_course ()
 test_set_cm_with_course_and_activity_no_db ()
 test_cannot_set_cm_with_inconsistent_course ()
 test_get_activity_name ()

Protected Member Functions

 create_a_forum_with_context ()

Protected Attributes

 $testpage
 $originalcourse

Detailed Description

Test functions that rely on the context table.

Definition at line 519 of file testpagelib_moodlepage.php.


Member Function Documentation

create_a_forum_with_context ( ) [protected]

Creates an object with all the fields you would expect a $course object to have.

Definition at line 548 of file testpagelib_moodlepage.php.

Here is the caller graph for this function:

setUp ( )

Definition at line 523 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

tearDown ( )

Reimplemented from UnitTestCaseUsingDatabase.

Definition at line 540 of file testpagelib_moodlepage.php.

Definition at line 626 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 605 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 692 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 645 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 656 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 591 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 702 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 635 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 596 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 677 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 614 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 667 of file testpagelib_moodlepage.php.

Here is the call graph for this function:


Field Documentation

$originalcourse [protected]

Definition at line 521 of file testpagelib_moodlepage.php.

$testpage [protected]

Definition at line 520 of file testpagelib_moodlepage.php.


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