MDL-29478 unittest - we aren't a report anymore but one admin/tool

This commit is contained in:
Eloy Lafuente (stronk7) 2011-09-23 00:11:50 +02:00
parent 635c65bbd5
commit 40a8974915

View File

@ -225,7 +225,7 @@ class moodle_page_test extends UnitTestCase {
public function test_pagetype_defaults_to_script() {
// Exercise SUT and validate
$this->assertEqual('admin-report-unittest-index', $this->testpage->pagetype);
$this->assertEqual('admin-tool-unittest-index', $this->testpage->pagetype);
}
public function test_set_pagetype() {
@ -239,7 +239,7 @@ class moodle_page_test extends UnitTestCase {
// Exercise SUT
$this->testpage->initialise_default_pagetype('admin/tool/unittest/index.php');
// Validate
$this->assertEqual('admin-report-unittest-index', $this->testpage->pagetype);
$this->assertEqual('admin-tool-unittest-index', $this->testpage->pagetype);
}
public function test_initialise_default_pagetype_fp() {