diff --git a/core/modules/file/lib/Drupal/file/Tests/FileListingTest.php b/core/modules/file/lib/Drupal/file/Tests/FileListingTest.php index 2b2bc55cbb6..e8a2f5da8e9 100644 --- a/core/modules/file/lib/Drupal/file/Tests/FileListingTest.php +++ b/core/modules/file/lib/Drupal/file/Tests/FileListingTest.php @@ -94,7 +94,7 @@ class FileListingTest extends FileFieldTestBase { $this->assertLinkByHref(file_create_url($file->getFileUri())); $this->assertLinkByHref('admin/content/files/usage/' . $file->id()); } - $this->assertFalse(preg_match('/views-field-status priority-low\">\s*' . t('Temporary') . '/', $this->drupalGetContent()), t('All files are stored as permanent.')); + $this->assertFalse(preg_match('/views-field-status priority-low\">\s*' . t('Temporary') . '/', $this->drupalGetContent()), 'All files are stored as permanent.'); // Use one file two times and check usage information. $orphaned_file = $nodes[1]->file->target_id; @@ -112,6 +112,6 @@ class FileListingTest extends FileFieldTestBase { $this->assertRaw('admin/content/files/usage/' . $file->id() . '">' . $usage); $result = $this->xpath("//td[contains(@class, 'views-field-status') and contains(text(), :value)]", array(':value' => t('Temporary'))); - $this->assertEqual(1, count($result), t('Unused file marked as temporary.')); + $this->assertEqual(1, count($result), 'Unused file marked as temporary.'); } }