diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/HttpRequestTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/HttpRequestTest.php index 39f84d6..de7aba4 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/HttpRequestTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/HttpRequestTest.php @@ -45,7 +45,7 @@ class HttpRequestTest extends WebTestBase { // Test that code and status message is returned. $result = drupal_http_request(url('pagedoesnotexist', array('absolute' => TRUE))); - $this->assertTrue(!empty($result->protocol), 'Result protocol is returned.'); + $this->assertTrue(!empty($result->protocol), 'Result protocol is returned.'); $this->assertEqual($result->code, '404', 'Result code is 404'); $this->assertEqual($result->status_message, 'Not Found', 'Result status message is "Not Found"'); diff --git a/core/modules/system/lib/Drupal/system/Tests/Menu/TreeDataUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Menu/TreeDataUnitTest.php index 4a013ea..8c97e1b 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Menu/TreeDataUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Menu/TreeDataUnitTest.php @@ -60,6 +60,6 @@ class TreeDataUnitTest extends UnitTestBase { * TRUE if the assertion succeeded, FALSE otherwise. */ protected function assertSameLink($link1, $link2, $message = '') { - return $this->assert($link1['mlid'] == $link2['mlid'], $message ? $message : 'First link is identical to second link'); + return $this->assert($link1['mlid'] == $link2['mlid'], $message ? $message : t('First link is identical to second link')); } } diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php index 392959d..d2a0e5b 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php @@ -30,7 +30,7 @@ class TableTest extends WebTestBase { $this->content = theme('table', array('header' => $header, 'rows' => $rows)); $js = drupal_add_js(); $this->assertTrue(isset($js['core/misc/tableheader.js']), 'tableheader.js was included when $sticky = TRUE.'); - $this->assertRaw('sticky-enabled', 'Table has a class of sticky-enabled when $sticky = TRUE.'); + $this->assertRaw('sticky-enabled', 'Table has a class of sticky-enabled when $sticky = TRUE.'); drupal_static_reset('drupal_add_js'); } @@ -46,7 +46,7 @@ class TableTest extends WebTestBase { $this->content = theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => $attributes, 'caption' => $caption, 'colgroups' => $colgroups, 'sticky' => FALSE)); $js = drupal_add_js(); $this->assertFalse(isset($js['core/misc/tableheader.js']), 'tableheader.js was not included because $sticky = FALSE.'); - $this->assertNoRaw('sticky-enabled', 'Table does not have a class of sticky-enabled because $sticky = FALSE.'); + $this->assertNoRaw('sticky-enabled', 'Table does not have a class of sticky-enabled because $sticky = FALSE.'); drupal_static_reset('drupal_add_js'); } diff --git a/core/modules/update/lib/Drupal/update/Tests/UpdateContribTest.php b/core/modules/update/lib/Drupal/update/Tests/UpdateContribTest.php index 052c2aa..aaf485c 100644 --- a/core/modules/update/lib/Drupal/update/Tests/UpdateContribTest.php +++ b/core/modules/update/lib/Drupal/update/Tests/UpdateContribTest.php @@ -300,7 +300,7 @@ class UpdateContribTest extends UpdateTestBase { // We need to check that this string is found as part of a project row, // not just in the "Failed to get available update data for ..." message // at the top of the page. - $this->assertRaw('
' . 'Failed to get available update data'); + $this->assertRaw('
' . t('Failed to get available update data')); // We should see the output messages from fetching manually. $this->assertUniqueText(t('Checked available update data for 3 projects.')); diff --git a/core/modules/update/lib/Drupal/update/Tests/UpdateCoreTest.php b/core/modules/update/lib/Drupal/update/Tests/UpdateCoreTest.php index 6628f4a..aba0bb6 100644 --- a/core/modules/update/lib/Drupal/update/Tests/UpdateCoreTest.php +++ b/core/modules/update/lib/Drupal/update/Tests/UpdateCoreTest.php @@ -164,7 +164,7 @@ class UpdateCoreTest extends UpdateTestBase { // We're expecting "There is a security update..." inside the status report // itself, but the drupal_set_message() appears as an li so we can prefix // with that and search for the raw HTML. - $this->assertNoRaw('
  • ' . 'There is a security update available for your version of Drupal.'); + $this->assertNoRaw('
  • ' . t('There is a security update available for your version of Drupal.')); $this->drupalGet('admin/reports/updates'); $this->assertNoText(t('There is a security update available for your version of Drupal.'));