summaryrefslogtreecommitdiff
path: root/modules/php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-05-30 07:30:53 +0000
committerDries Buytaert <dries@buytaert.net>2008-05-30 07:30:53 +0000
commitc6c26b5e230b5225ea8a355b6e7a7b31096f7cb3 (patch)
tree18f49ddd773f033ed75eba1fa70dc55de1952f55 /modules/php
parentbc5f69a333af204f8e6c6494d85c96b2da1e1c51 (diff)
downloadbrdo-c6c26b5e230b5225ea8a355b6e7a7b31096f7cb3.tar.gz
brdo-c6c26b5e230b5225ea8a355b6e7a7b31096f7cb3.tar.bz2
- Patch #247423 by boombatower: code style fixes for the tests.
Diffstat (limited to 'modules/php')
-rw-r--r--modules/php/php.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/php/php.test b/modules/php/php.test
index d0293d1f3..29d0bad54 100644
--- a/modules/php/php.test
+++ b/modules/php/php.test
@@ -50,7 +50,7 @@ class PHPTestCase extends DrupalWebTestCase {
// Change filter to PHP filter and see that PHP code is evaluated.
$edit = array();
$edit['format'] = 3;
- $this->drupalPost('node/'. $node->nid .'/edit', $edit, t('Save'));
+ $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
$this->assertRaw(t('Page %title has been updated.', array('%title' => $node->title)), t('PHP code filter turned on.'));
// Make sure that the PHP code shows up as text.
@@ -72,7 +72,7 @@ class PHPTestCase extends DrupalWebTestCase {
$this->assertText('print', t('PHP code is displayed.'));
// Make sure that user doesn't have access to filter.
- $this->drupalGet('node/'. $node->nid .'/edit');
+ $this->drupalGet('node/' . $node->nid . '/edit');
$this->assertNoFieldByName('format', '3', t('Format not available.'));
}
@@ -86,7 +86,7 @@ class PHPTestCase extends DrupalWebTestCase {
$node = $this->drupalCreateNode(array('uid' => $user->uid));
$edit = array();
$edit['body'] = '<?php print "SimpleTest PHP was executed!"; ?>';
- $this->drupalPost('node/'. $node->nid .'/edit', $edit, t('Save'));
+ $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
$this->assertRaw(t('Page %title has been updated.', array('%title' => $node->title)), t('PHP code inserted into node.'));
return $node;
}