Merge branch 'w47_MDL-36701_m24_composer' of git://github.com/skodak/moodle

This commit is contained in:
Aparup Banerjee 2012-11-22 16:23:20 +08:00
commit 020e338dee
6 changed files with 61 additions and 30 deletions

View file

@ -187,7 +187,10 @@ class moodle_page_test extends advanced_testcase {
}
public function test_pagetype_defaults_to_script() {
global $SCRIPT;
// Exercise SUT and validate
$SCRIPT = '/index.php';
$this->testpage->initialise_default_pagetype();
$this->assertEquals('site-index', $this->testpage->pagetype);
}