mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 05:54:19 +02:00
MDL-29708 Fixed extra slashes in $string['storedfilenotcreated'].
This commit is contained in:
parent
e7ea6b9a24
commit
ad3ade7681
@ -489,7 +489,7 @@ $string['statsnodata'] = 'There is no available data for that combination of cou
|
||||
$string['storedfilecannotcreatefile'] = 'Can not create local file pool file, please verify permissions in dataroot and available disk space.';
|
||||
$string['storedfilecannotcreatefiledirs'] = 'Can not create local file pool directories, please verify permissions in dataroot.';
|
||||
$string['storedfilecannotread'] = 'Can not read file, either file does not exist or there are permission problems';
|
||||
$string['storedfilenotcreated'] = 'Can not create file "{$a->contextid}/{$a->component}/{$a->filearea}/{$a->itemid}/{$a->filepath}/{$a->filename}"';
|
||||
$string['storedfilenotcreated'] = 'Can not create file "{$a->contextid}/{$a->component}/{$a->filearea}/{$a->itemid}{$a->filepath}{$a->filename}"';
|
||||
$string['storedfileproblem'] = 'Unknown exception related to local files ({$a})';
|
||||
$string['tagdisabled'] = 'Tags are disabled!';
|
||||
$string['tagnotfound'] = 'The specified tag was not found in the database';
|
||||
|
@ -300,7 +300,8 @@ class core_files_file_storage_testcase extends advanced_testcase {
|
||||
$this->assertEquals($contenthash, $file->get_contenthash());
|
||||
|
||||
// Try break it.
|
||||
$this->setExpectedException('file_exception');
|
||||
$this->setExpectedException('file_exception',
|
||||
'Can not create file "1/core/unittest/0/test/newtest.txt" (file exists, cannot rename)');
|
||||
// This shall throw exception.
|
||||
$originalfile->rename($newpath, $newname);
|
||||
}
|
||||
@ -1146,7 +1147,7 @@ class core_files_file_storage_testcase extends advanced_testcase {
|
||||
$this->assertInstanceOf('stored_file', $file1);
|
||||
|
||||
// Creating a file validating unique constraint.
|
||||
$this->setExpectedException('stored_file_creation_exception');
|
||||
$this->setExpectedException('stored_file_creation_exception', 'Can not create file "1/core/phpunit/0/testfile.txt"');
|
||||
$fs->create_file_from_storedfile($filerecord, $file1->get_id());
|
||||
}
|
||||
|
||||
@ -1426,7 +1427,7 @@ class core_files_file_storage_testcase extends advanced_testcase {
|
||||
$this->assertInstanceOf('stored_file', $file1);
|
||||
|
||||
// Creating a file validating unique constraint.
|
||||
$this->setExpectedException('stored_file_creation_exception');
|
||||
$this->setExpectedException('stored_file_creation_exception', 'Can not create file "1/core/phpunit/0/testfile.txt"');
|
||||
$file2 = $fs->create_file_from_pathname($filerecord, $path);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user