mirror of
https://github.com/moodle/moodle.git
synced 2025-02-08 09:02:07 +01:00
Apply parser processor new methods + observe $CFG->keeptempdirectoriesonbackup
This commit is contained in:
parent
be85390109
commit
5b01180aed
@ -24,7 +24,9 @@ class moodle1_converter_test extends UnitTestCase {
|
||||
|
||||
public function tearDown() {
|
||||
global $CFG;
|
||||
fulldelete("$CFG->dataroot/temp/backup/$this->tempdir");
|
||||
if (empty($CFG->keeptempdirectoriesonbackup)) {
|
||||
fulldelete("$CFG->dataroot/temp/backup/$this->tempdir");
|
||||
}
|
||||
}
|
||||
|
||||
public function test_can_convert() {
|
||||
@ -38,4 +40,4 @@ class moodle1_converter_test extends UnitTestCase {
|
||||
$this->assertIsA($converter, 'moodle1_converter');
|
||||
$converter->convert();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -69,4 +69,12 @@ class convert_structure_parser_processor extends grouped_parser_processor {
|
||||
protected function dispatch_chunk($data) {
|
||||
$this->converter->process($data);
|
||||
}
|
||||
}
|
||||
|
||||
protected function notify_path_start($path) {
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
protected function notify_path_end($path) {
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user