From 25171a17f626695ecf984cc44b60d3eae1310b4c Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 5 Aug 2010 23:53:39 +0000 Subject: Reverting #500866. Needs more discussion. --- modules/simpletest/tests/path.test | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/simpletest/tests/path.test') diff --git a/modules/simpletest/tests/path.test b/modules/simpletest/tests/path.test index ea3c0a1d7..f99585691 100644 --- a/modules/simpletest/tests/path.test +++ b/modules/simpletest/tests/path.test @@ -42,7 +42,7 @@ class DrupalMatchPathTestCase extends DrupalWebTestCase { foreach ($tests as $patterns => $cases) { foreach ($cases as $path => $expected_result) { $actual_result = drupal_match_path($path, $patterns); - $this->assertIdentical($actual_result, $expected_result, 'Tried matching the path ' . $path . ' to the pattern
' . $patterns . '
- expected ' . var_export($expected_result, TRUE) . ', got ' . var_export($actual_result, TRUE) . '.'); + $this->assertIdentical($actual_result, $expected_result, t('Tried matching the path @path to the pattern
@patterns
- expected @expected, got @actual.', array('@path' => $path, '@patterns' => $patterns, '@expected' => var_export($expected_result, TRUE), '@actual' => var_export($actual_result, TRUE)))); } } } @@ -197,8 +197,8 @@ class UrlAlterFunctionalTest extends DrupalWebTestCase { */ function testCurrentUrlRequestedPath() { $this->drupalGet('url-alter-test/bar'); - $this->assertRaw('request_path=url-alter-test/bar', 'request_path() returns the requested path.'); - $this->assertRaw('current_path=url-alter-test/foo', 'current_path() returns the internal path.'); + $this->assertRaw('request_path=url-alter-test/bar', t('request_path() returns the requested path.')); + $this->assertRaw('current_path=url-alter-test/foo', t('current_path() returns the internal path.')); } /** @@ -216,7 +216,7 @@ class UrlAlterFunctionalTest extends DrupalWebTestCase { $result = url($original); $base_path = base_path() . (variable_get('clean_url', '0') ? '' : '?q='); $result = substr($result, strlen($base_path)); - $this->assertIdentical($result, $final, 'Altered outbound URL ' . $original . ', expected ' . $final . ', and got ' . $result . '.'); + $this->assertIdentical($result, $final, t('Altered outbound URL %original, expected %final, and got %result.', array('%original' => $original, '%final' => $final, '%result' => $result))); } /** @@ -233,6 +233,6 @@ class UrlAlterFunctionalTest extends DrupalWebTestCase { protected function assertUrlInboundAlter($original, $final) { // Test inbound altering. $result = drupal_get_normal_path($original); - $this->assertIdentical($result, $final, 'Altered inbound URL ' . $original . ', expected ' . $final . ', and got ' . $result . '.'); + $this->assertIdentical($result, $final, t('Altered inbound URL %original, expected %final, and got %result.', array('%original' => $original, '%final' => $final, '%result' => $result))); } } -- cgit v1.2.3