mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +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
|
@ -35,7 +35,7 @@ class moodle1_converter_test extends advanced_testcase {
|
|||
/** @var string the name of the directory containing the unpacked Moodle 1.9 backup */
|
||||
protected $tempdir;
|
||||
|
||||
public function setUp() {
|
||||
protected function setUp() {
|
||||
global $CFG;
|
||||
|
||||
$this->tempdir = convert_helper::generate_id('simpletest');
|
||||
|
@ -67,7 +67,7 @@ class moodle1_converter_test extends advanced_testcase {
|
|||
);
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
protected function tearDown() {
|
||||
global $CFG;
|
||||
if (empty($CFG->keeptempdirectoriesonbackup)) {
|
||||
fulldelete("$CFG->tempdir/backup/$this->tempdir");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue