MDL-55091 phpunit: Following has been deprecated.
1. getMock() 2. setExpectedException() 3. checkForUnintentionallyCoveredCode renamed to beStrictAboutCoversAnnotation 4. beStrictAboutTestSize renamed to enforceTimeLimit 5. UnitTestCase class is now fully removed.
This commit is contained in:
@@ -111,12 +111,14 @@ class core_update_code_manager_testcase extends advanced_testcase {
|
||||
$files = $codeman->unzip_plugin_file($zipfilepath, $targetdir, 'bar');
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException moodle_exception
|
||||
*/
|
||||
public function test_unzip_plugin_file_multidir() {
|
||||
$codeman = new \core\update\testable_code_manager();
|
||||
$zipfilepath = __DIR__.'/fixtures/update_validator/zips/multidir.zip';
|
||||
$targetdir = make_request_directory();
|
||||
// Attempting to rename the root folder if there are multiple ones should lead to exception.
|
||||
$this->setExpectedException('moodle_exception');
|
||||
$files = $codeman->unzip_plugin_file($zipfilepath, $targetdir, 'foo');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user