Issue #3131258 by longwave, mondrake, dww: Remove redundant $message from...
Issue #3131258 by longwave, mondrake, dww: Remove redundant $message from assertFile(Not)Exists and assertDirectory(Not)Exists calls
(cherry picked from commit 023ef041)
$this->assertFileExists($node_file_r3->getFileUri(),'Second file is still available after deleting second revision, since it is being used by the third revision.');
$this->assertFileEntryExists($node_file_r3,'Second file entry is still available after deleting second revision, since it is being used by the third revision.');
$this->assertFileIsPermanent($node_file_r3,'Second file entry is still permanent after deleting second revision, since it is being used by the third revision.');
@@ -107,7 +107,7 @@ public function testRevisions() {
// Delete the third revision and check that the file is not deleted yet.
$this->assertFileExists($node_file_r3->getFileUri(),'Second file is still available after deleting third revision, since it is being used by the user.');
$this->assertFileEntryExists($node_file_r3,'Second file entry is still available after deleting third revision, since it is being used by the user.');
$this->assertFileIsPermanent($node_file_r3,'Second file entry is still permanent after deleting third revision, since it is being used by the user.');
@@ -134,7 +134,7 @@ public function testRevisions() {
->execute();
\Drupal::service('cron')->run();
$this->assertFileNotExists($node_file_r3->getFileUri(),'Second file is now deleted after deleting third revision, since it is no longer being used by any other nodes.');
$this->assertFileEntryNotExists($node_file_r3,'Second file entry is now deleted after deleting third revision, since it is no longer being used by any other nodes.');
// Delete the entire node and check that the original file is deleted.
@@ -150,7 +150,7 @@ public function testRevisions() {
->condition('fid',$node_file_r1->id())
->execute();
\Drupal::service('cron')->run();
$this->assertFileNotExists($node_file_r1->getFileUri(),'Original file is deleted after deleting the entire node with two revisions remaining.');
$this->assertFileExists($node_file->getFileUri(),newFormattableMarkup('File exists after uploading a file (%filesize) under the max limit (%maxsize).',['%filesize'=>format_size($small_file->getSize()),'%maxsize'=>$max_filesize]));
$this->assertFileEntryExists($node_file,newFormattableMarkup('File entry exists after uploading a file (%filesize) under the max limit (%maxsize).',['%filesize'=>format_size($small_file->getSize()),'%maxsize'=>$max_filesize]));
// Check that uploading the large file fails (1M limit).
@@ -115,7 +115,7 @@ public function testFileMaxSize() {
$this->assertFileExists($node_file->getFileUri(),newFormattableMarkup('File exists after uploading a file (%filesize) with no max limit.',['%filesize'=>format_size($large_file->getSize())]));
$this->assertFileEntryExists($node_file,newFormattableMarkup('File entry exists after uploading a file (%filesize) with no max limit.',['%filesize'=>format_size($large_file->getSize())]));
}
@@ -139,7 +139,7 @@ public function testFileExtension() {