mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-32149 setUp() and tearDown() are supposed to be 'protected', add missing blog testcase
This commit is contained in:
parent
814a96edfb
commit
1cbf2a20ca
15 changed files with 29 additions and 26 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue