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

Public Member Functions

 setUp ()
 tearDown ()
 test_course_returns_site_before_set ()
 test_setting_course_works ()
 test_global_course_and_page_course_are_same_with_global_page ()
 test_global_course_not_changed_with_non_global_page ()
 test_cannot_set_course_once_theme_set ()
 test_cannot_set_category_once_theme_set ()
 test_cannot_set_category_once_course_set ()
 test_categories_array_empty_for_front_page ()
 test_set_state_normal_path ()
 test_set_state_cannot_skip_one ()
 test_header_printed_false_initially ()
 test_header_printed_becomes_true ()
 test_set_context ()
 test_pagetype_defaults_to_script ()
 test_set_pagetype ()
 test_initialise_default_pagetype ()
 test_initialise_default_pagetype_fp ()
 test_get_body_classes_empty ()
 test_get_body_classes_single ()
 test_get_body_classes ()
 test_url_to_class_name ()
 test_set_docs_path ()
 test_docs_path_defaults_from_pagetype ()
 test_set_url_root ()
 test_set_url_one_param ()
 test_set_url_two_params ()
 test_set_url_using_moodle_url ()
 test_set_url_sets_page_type ()
 test_set_url_does_not_change_explicit_page_type ()
 test_set_subpage ()
 test_set_heading ()
 test_set_title ()
 test_default_pagelayout ()
 test_set_pagelayout ()

Static Public Attributes

static $includecoverage = array('lib/pagelib.php', 'lib/blocklib.php')

Protected Member Functions

 create_a_course ()
 create_a_context ()

Protected Attributes

 $testpage
 $originalcourse
 $originalpage

Detailed Description

Test functions that don't need to touch the database.

Definition at line 56 of file testpagelib_moodlepage.php.


Member Function Documentation

create_a_context ( ) [protected]

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

Definition at line 88 of file testpagelib_moodlepage.php.

Here is the caller graph for this function:

create_a_course ( ) [protected]

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

Definition at line 77 of file testpagelib_moodlepage.php.

Here is the caller graph for this function:

setUp ( )

Definition at line 62 of file testpagelib_moodlepage.php.

tearDown ( )

Definition at line 69 of file testpagelib_moodlepage.php.

Definition at line 157 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 148 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 138 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 168 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 98 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 363 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 285 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 264 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 252 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 257 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 114 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 126 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 206 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 201 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 238 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 245 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 226 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 217 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 278 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 349 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 368 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 231 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 194 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 178 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 342 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 356 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 333 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 300 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 292 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 326 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 308 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 316 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 104 of file testpagelib_moodlepage.php.

Here is the call graph for this function:

Definition at line 271 of file testpagelib_moodlepage.php.

Here is the call graph for this function:


Field Documentation

$includecoverage = array('lib/pagelib.php', 'lib/blocklib.php') [static]

Definition at line 60 of file testpagelib_moodlepage.php.

$originalcourse [protected]

Definition at line 58 of file testpagelib_moodlepage.php.

$originalpage [protected]

Definition at line 59 of file testpagelib_moodlepage.php.

$testpage [protected]

Definition at line 57 of file testpagelib_moodlepage.php.


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