Skip to content
Snippets Groups Projects
Commit 509c2b2d authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2059699 by tim-e, Cottser: Remove t() from test assertion messages in file.module.

parent 092fb4f5
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -94,7 +94,7 @@ function testFileListingPages() { ...@@ -94,7 +94,7 @@ function testFileListingPages() {
$this->assertLinkByHref(file_create_url($file->getFileUri())); $this->assertLinkByHref(file_create_url($file->getFileUri()));
$this->assertLinkByHref('admin/content/files/usage/' . $file->id()); $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. // Use one file two times and check usage information.
$orphaned_file = $nodes[1]->file->target_id; $orphaned_file = $nodes[1]->file->target_id;
...@@ -112,6 +112,6 @@ function testFileListingPages() { ...@@ -112,6 +112,6 @@ function testFileListingPages() {
$this->assertRaw('admin/content/files/usage/' . $file->id() . '">' . $usage); $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'))); $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.');
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment