mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
moodle_page: MDL-12212 clarify some comments
This commit is contained in:
parent
93d4a373f9
commit
c33db6e690
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ if (!defined('MOODLE_INTERNAL')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once($CFG->libdir . '/pagelib.php');
|
require_once($CFG->libdir . '/pagelib.php');
|
||||||
|
require_once($CFG->libdir . '/blocklib.php');
|
||||||
|
|
||||||
|
/** Test-specific subclass to make some protected things public. */
|
||||||
class testable_moodle_page extends moodle_page {
|
class testable_moodle_page extends moodle_page {
|
||||||
public function initialise_default_pagetype($script = null) {
|
public function initialise_default_pagetype($script = null) {
|
||||||
parent::initialise_default_pagetype($script);
|
parent::initialise_default_pagetype($script);
|
||||||
|
@ -49,7 +51,7 @@ class testable_moodle_page extends moodle_page {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test functions that affect filter_active table with contextid = $syscontextid.
|
* Test functions that don't need to touch the database.
|
||||||
*/
|
*/
|
||||||
class moodle_page_test extends UnitTestCase {
|
class moodle_page_test extends UnitTestCase {
|
||||||
protected $testpage;
|
protected $testpage;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue