From c563a5990f40aa60c4edc28925df4668626e8635 Mon Sep 17 00:00:00 2001 From: Lars Toomre Date: Fri, 19 Oct 2012 12:02:40 -0400 Subject: [PATCH] Issue 1797920 by Lars Toomre: Remove t() from assert messages in T-Z system sub-systems. --- .../lib/Drupal/system/Tests/Theme/FastTest.php | 2 +- .../Drupal/system/Tests/Theme/FunctionsTest.php | 34 +++++++++--------- .../Drupal/system/Tests/Theme/HtmlTagUnitTest.php | 4 +- .../lib/Drupal/system/Tests/Theme/TableTest.php | 12 +++--- .../lib/Drupal/system/Tests/Theme/ThemeTest.php | 38 ++++++++++---------- .../Tests/Update/DependencyHookInvocationTest.php | 6 ++-- .../system/Tests/Update/DependencyMissingTest.php | 6 ++-- .../system/Tests/Update/DependencyOrderingTest.php | 6 ++-- .../system/Tests/Update/UpdateScriptTest.php | 10 +++--- .../Tests/Upgrade/BareMinimalUpgradePathTest.php | 8 ++-- .../Tests/Upgrade/BareStandardUpgradePathTest.php | 8 ++-- .../Tests/Upgrade/FilledMinimalUpgradePathTest.php | 8 ++-- .../Upgrade/FilledStandardUpgradePathTest.php | 8 ++-- .../Tests/Upgrade/LanguageUpgradePathTest.php | 32 ++++++++-------- .../system/Tests/Upgrade/UpgradePathTestBase.php | 4 +- .../lib/Drupal/system/Tests/Uuid/UuidUnitTest.php | 10 +++--- 16 files changed, 98 insertions(+), 98 deletions(-) diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/FastTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/FastTest.php index d28e192..91ed65c 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Theme/FastTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Theme/FastTest.php @@ -41,6 +41,6 @@ function testUserAutocomplete() { $this->drupalLogin($this->account); $this->drupalGet('user/autocomplete/' . $this->account->name); $this->assertRaw($this->account->name); - $this->assertNoText('registry initialized', t('The registry was not initialized')); + $this->assertNoText('registry initialized', 'The registry was not initialized'); } } diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php index 0e33ef2..d0dae7d 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php @@ -207,14 +207,14 @@ function testDrupalPreRenderLinks() { $html = drupal_render($render_array); $dom = new DOMDocument(); $dom->loadHTML($html); - $this->assertEqual($dom->getElementsByTagName('ul')->length, 1, t('One "ul" tag found in the rendered HTML.')); + $this->assertEqual($dom->getElementsByTagName('ul')->length, 1, 'One "ul" tag found in the rendered HTML.'); $list_elements = $dom->getElementsByTagName('li'); - $this->assertEqual($list_elements->length, 3, t('Three "li" tags found in the rendered HTML.')); - $this->assertEqual($list_elements->item(0)->nodeValue, 'Parent link original', t('First expected link found.')); - $this->assertEqual($list_elements->item(1)->nodeValue, 'First child link', t('Second expected link found.')); - $this->assertEqual($list_elements->item(2)->nodeValue, 'Second child link', t('Third expected link found.')); - $this->assertIdentical(strpos($html, 'Parent link copy'), FALSE, t('"Parent link copy" link not found.')); - $this->assertIdentical(strpos($html, 'Third child link'), FALSE, t('"Third child link" link not found.')); + $this->assertEqual($list_elements->length, 3, 'Three "li" tags found in the rendered HTML.'); + $this->assertEqual($list_elements->item(0)->nodeValue, 'Parent link original', 'First expected link found.'); + $this->assertEqual($list_elements->item(1)->nodeValue, 'First child link', 'Second expected link found.'); + $this->assertEqual($list_elements->item(2)->nodeValue, 'Second child link', 'Third expected link found.'); + $this->assertIdentical(strpos($html, 'Parent link copy'), FALSE, '"Parent link copy" link not found.'); + $this->assertIdentical(strpos($html, 'Third child link'), FALSE, '"Third child link" link not found.'); // Now render 'first_child', followed by the rest of the links, and make // sure we get two separate