Merge branch 'MDL-49533-master' of git://github.com/andrewnicols/moodle
[moodle.git] / repository / tests / generator_test.php
index 924a9fd..2f2f309 100644 (file)
@@ -185,7 +185,7 @@ class core_repository_generator_testcase extends advanced_testcase {
         $this->assertEquals($record->contextid, $instance->contextid);
 
         // Invalid context.
-        $this->setExpectedException('coding_exception');
+        $this->expectException('coding_exception');
         $record->contextid = context_block::instance($block->id)->id;
         $instance = $this->getDataGenerator()->create_repository('webdav', $record);
     }