'filepath'=>'Файл для тестирования '.$this->randomName(),// Prefix with non-latin characters to ensure that all file-related tests work with international filenames.
'filepath'=>'Файл для тестирования '.$this->randomName().'.txt',// Prefix with non-latin characters to ensure that all file-related tests work with international filenames.
'filemime'=>'text/plain',
'uid'=>1,
'timestamp'=>REQUEST_TIME,
...
...
@@ -1087,6 +1087,16 @@ class FileEntityReplaceTestCase extends FileEntityTestHelper {
$this->assertRaw(t('The specified file %file could not be uploaded. Only files with the following extensions are allowed:',array('%file'=>$image->filename)),'File validation works, upload failed correctly.');
// Restrict allowed document filetypes to exclude plain text files.