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

8.0.x
webchick 2013-08-12 00:09:01 -07:00
parent 092fb4f5c1
commit 509c2b2d8b
1 changed files with 2 additions and 2 deletions

View File

@ -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.');
}
}