Similarly to what done in Drupal core tests, the assert messages should not be translatable.

AccessDeniedTestCase

$this->assertText($node->title, 'Found the custom 403 page');
// Logout and check that the user login block is shown on custom 403 pages.
$this->drupalLogout();
$this->drupalGet('admin');
$this->assertText($node->title, 'Found the custom 403 page');

CacheIsEmptyCase

$this->assertTrue(cache_is_empty($this->default_bin), 'The cache bin is empty');

The last class code is not very consistent, since it translates the messages for its own assert methods.

Issue fork apc-3464314

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

avpaderno created an issue. See original summary.

avpaderno’s picture

Issue summary: View changes
Status: Active » Needs review

  • avpaderno committed 713a27bb on 7.x-1.x
    Issue #3464314: Do not use t() for the assert messages
    
avpaderno’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.