Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Apr 2012 at 01:53 UTC
Updated:
29 Jul 2014 at 20:36 UTC
All throughout core there are simpletests with gazillions of assertions and some of them use t() on the second parameter and some dont. Which is correct? Once we decide which is correct I think we should go through and fix...
Example (from form.test):
$this->assertNoFieldByXPath('//th[@class="select-all"]', NULL, t('Do not display a "Select all" checkbox when #multiple is FALSE, even when #js_select is TRUE.'));
Example (from shortcut.test):
$this->assertFalse(in_array($set->links[0]['mlid'], $mlids), 'Successfully deleted a shortcut.');
Comments
Comment #1
bas.hr commentedThis is already being discussed in #500866: [META] remove t() from assert message
Comment #2
bleen commented