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

@ -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");