$this->assertPathMatch('public://'.$test_file->getFilename(),$node_file->getFileUri(),format_string('The file %file was uploaded to the correct path.',array('%file'=>$node_file->getFileUri())));
// Change the path to contain multiple subdirectories.
...
...
@@ -46,7 +46,7 @@ function testUploadPath() {
// Check that the file was uploaded into the subdirectory.
$this->assertPathMatch('public://foo/bar/baz/'.$test_file->getFilename(),$node_file->getFileUri(),format_string('The file %file was uploaded to the correct path.',array('%file'=>$node_file->getFileUri())));
// Check the path when used with tokens.
...
...
@@ -58,7 +58,7 @@ function testUploadPath() {
// Check that the file was uploaded into the subdirectory.
$this->assertFileExists($node_file,format_string('File exists after uploading a file (%filesize) under the max limit (%maxsize).',array('%filesize'=>format_size($small_file->getSize()),'%maxsize'=>$max_filesize)));
$this->assertFileEntryExists($node_file,format_string('File entry exists after uploading a file (%filesize) under the max limit (%maxsize).',array('%filesize'=>format_size($small_file->getSize()),'%maxsize'=>$max_filesize)));
$this->assertFileExists($node_file,format_string('File exists after uploading a file (%filesize) with no max limit.',array('%filesize'=>format_size($large_file->getSize()))));
$this->assertFileEntryExists($node_file,format_string('File entry exists after uploading a file (%filesize) with no max limit.',array('%filesize'=>format_size($large_file->getSize()))));
}
...
...
@@ -131,7 +131,7 @@ function testFileExtension() {
// Check that the file can be uploaded with no extension checking.