diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-05 23:26:36 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-05 23:26:36 +0000 |
commit | cacd044a6398df92de68c5aea31987ac0fff507a (patch) | |
tree | 41305d208c037ae0aad0c68fb23beb66715f145a /modules/php | |
parent | efbf061c8142c201967389eac42e8284dfa9aff9 (diff) | |
download | brdo-cacd044a6398df92de68c5aea31987ac0fff507a.tar.gz brdo-cacd044a6398df92de68c5aea31987ac0fff507a.tar.bz2 |
#500866 by boombatower, solotandem: Remove t() from assertion messages in SimpleTest, so translators do not get 1000s of bogus strings.
Diffstat (limited to 'modules/php')
-rw-r--r-- | modules/php/php.test | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/modules/php/php.test b/modules/php/php.test index 6f36e4f5f..703c36ec7 100644 --- a/modules/php/php.test +++ b/modules/php/php.test @@ -17,20 +17,20 @@ class PHPTestCase extends DrupalWebTestCase { // Verify that the PHP code text format was inserted. $php_format_id = db_query_range('SELECT format FROM {filter_format} WHERE name = :name', 0, 1, array(':name' => 'PHP code'))->fetchField(); $php_format = filter_format_load($php_format_id); - $this->assertEqual($php_format->name, 'PHP code', t('PHP code text format was created.')); + $this->assertEqual($php_format->name, 'PHP code', 'PHP code text format was created.'); // Verify that the format has the PHP code filter enabled. $filters = filter_list_format($php_format_id); - $this->assertTrue($filters['php_code']->status, t('PHP code filter is enabled.')); + $this->assertTrue($filters['php_code']->status, 'PHP code filter is enabled.'); // Verify that the format exists on the administration page. $this->drupalGet('admin/config/content/formats'); - $this->assertText('PHP code', t('PHP code text format was created.')); + $this->assertText('PHP code', 'PHP code text format was created.'); // Verify that anonymous and authenticated user roles do not have access. $this->drupalGet('admin/config/content/formats/' . $php_format_id); - $this->assertFieldByName('roles[1]', FALSE, t('Anonymous users do not have access to PHP code format.')); - $this->assertFieldByName('roles[2]', FALSE, t('Authenticated users do not have access to PHP code format.')); + $this->assertFieldByName('roles[1]', FALSE, 'Anonymous users do not have access to PHP code format.'); + $this->assertFieldByName('roles[2]', FALSE, 'Authenticated users do not have access to PHP code format.'); // Store the format ID of the PHP code text format for later use. $this->php_code_format = $php_format_id; @@ -72,18 +72,18 @@ class PHPFilterTestCase extends PHPTestCase { // Make sure that the PHP code shows up as text. $this->drupalGet('node/' . $node->nid); - $this->assertText('print "SimpleTest PHP was executed!"', t('PHP code is displayed.')); + $this->assertText('print "SimpleTest PHP was executed!"', 'PHP code is displayed.'); // Change filter to PHP filter and see that PHP code is evaluated. $edit = array(); $langcode = LANGUAGE_NONE; $edit["body[$langcode][0][format]"] = $this->php_code_format; $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); - $this->assertRaw(t('Basic page %title has been updated.', array('%title' => $node->title)), t('PHP code filter turned on.')); + $this->assertRaw(t('Basic page %title has been updated.', array('%title' => $node->title)), 'PHP code filter turned on.'); // Make sure that the PHP code shows up as text. - $this->assertNoText('print "SimpleTest PHP was executed!"', t("PHP code isn't displayed.")); - $this->assertText('SimpleTest PHP was executed!', t('PHP code has been evaluated.')); + $this->assertNoText('print "SimpleTest PHP was executed!"', "PHP code isn't displayed."); + $this->assertText('SimpleTest PHP was executed!', 'PHP code has been evaluated.'); } } @@ -110,10 +110,10 @@ class PHPAccessTestCase extends PHPTestCase { // Make sure that the PHP code shows up as text. $this->drupalGet('node/' . $node->nid); - $this->assertText('print', t('PHP code was not evaluated.')); + $this->assertText('print', 'PHP code was not evaluated.'); // Make sure that user doesn't have access to filter. $this->drupalGet('node/' . $node->nid . '/edit'); - $this->assertNoRaw('<option value="' . $this->php_code_format . '">', t('PHP code format not available.')); + $this->assertNoRaw('<option value="' . $this->php_code_format . '">', 'PHP code format not available.'); } } |