NOBUG backup - fix two recently broken tests

This commit is contained in:
Eloy Lafuente 2010-07-05 07:36:14 +00:00
parent e35194bec4
commit 21f96041dd

View File

@ -296,7 +296,7 @@ class backup_structure_test extends UnitTestCaseUsingDatabase {
$forum->annotate_files('mod_forum', 'intro', null);
// Mark to detect file of type 'forum_post' and 'forum_attachment' in post (with itemid being post->id)
$post->annotate_files('mod_forun', 'post', 'id');
$post->annotate_files('mod_forum', 'post', 'id');
$post->annotate_files('mod_forum', 'attachment', 'id');
// Mark various elements to be annotated
@ -579,7 +579,7 @@ class backup_structure_test extends UnitTestCaseUsingDatabase {
} catch (exception $e) {
$this->assertTrue($e instanceof base_element_struct_exception);
$this->assertEqual($e->errorcode, 'annotate_files_duplicate_annotation');
$this->assertEqual($e->a, 'test');
$this->assertEqual($e->a, 'test/filearea/');
}
$ne = new backup_nested_element('test', 'one', 'two', 'three');