MDL-32149 setUp() and tearDown() are supposed to be 'protected', add missing blog testcase

This commit is contained in:
Petr Skoda 2012-04-02 23:55:03 +02:00
parent 814a96edfb
commit 1cbf2a20ca
15 changed files with 29 additions and 26 deletions

View file

@ -53,14 +53,14 @@ class moodle_block_manager_testcase extends basic_testcase {
protected $testpage;
protected $blockmanager;
public function setUp() {
protected function setUp() {
parent::setUp();
$this->testpage = new moodle_page();
$this->testpage->set_context(get_context_instance(CONTEXT_SYSTEM));
$this->blockmanager = new testable_block_manager($this->testpage);
}
public function tearDown() {
protected function tearDown() {
$this->testpage = null;
$this->blockmanager = null;
parent::tearDown();