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
No related merge requests found
......@@ -94,7 +94,7 @@ function testFileListingPages() {
$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 @@ function testFileListingPages() {
$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.');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment