summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-09-28 02:30:32 +0000
committerDries Buytaert <dries@buytaert.net>2010-09-28 02:30:32 +0000
commitb1190c11b5551f20a99514bf2b0719b74449277d (patch)
tree1c9f62e1b67ab1950c95944862d8fd1120c54291 /modules/simpletest
parentb095783699dc4d912da49000941b10bae6778037 (diff)
downloadbrdo-b1190c11b5551f20a99514bf2b0719b74449277d.tar.gz
brdo-b1190c11b5551f20a99514bf2b0719b74449277d.tar.bz2
- Patch #924686 by mikey_p, munzirtaha: space required after foreach construct.
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/simpletest.test2
-rw-r--r--modules/simpletest/tests/ajax.test4
-rw-r--r--modules/simpletest/tests/form.test2
-rw-r--r--modules/simpletest/tests/schema.test2
4 files changed, 5 insertions, 5 deletions
diff --git a/modules/simpletest/simpletest.test b/modules/simpletest/simpletest.test
index 0e875ac6c..a457d1329 100644
--- a/modules/simpletest/simpletest.test
+++ b/modules/simpletest/simpletest.test
@@ -385,7 +385,7 @@ class SimpleTestMailCaptureTestCase extends DrupalWebTestCase {
// Assert that the e-mail was sent by iterating over the message properties
// and ensuring that they are captured intact.
- foreach($message as $field => $value) {
+ foreach ($message as $field => $value) {
$this->assertMail($field, $value, t('The e-mail was sent and the value for property @field is intact.', array('@field' => $field)), t('E-mail'));
}
diff --git a/modules/simpletest/tests/ajax.test b/modules/simpletest/tests/ajax.test
index 9377f4cdb..a9443b939 100644
--- a/modules/simpletest/tests/ajax.test
+++ b/modules/simpletest/tests/ajax.test
@@ -192,7 +192,7 @@ class AJAXFormValuesTestCase extends AJAXTestCase {
*/
function testSimpleAJAXFormValue() {
// Verify form values of a select element.
- foreach(array('red', 'green', 'blue') as $item) {
+ foreach (array('red', 'green', 'blue') as $item) {
$edit = array(
'select' => $item,
);
@@ -202,7 +202,7 @@ class AJAXFormValuesTestCase extends AJAXTestCase {
}
// Verify form values of a checkbox element.
- foreach(array(FALSE, TRUE) as $item) {
+ foreach (array(FALSE, TRUE) as $item) {
$edit = array(
'checkbox' => $item,
);
diff --git a/modules/simpletest/tests/form.test b/modules/simpletest/tests/form.test
index d8e0b21f1..b38264a3f 100644
--- a/modules/simpletest/tests/form.test
+++ b/modules/simpletest/tests/form.test
@@ -885,7 +885,7 @@ class FormsFormStorageTestCase extends DrupalWebTestCase {
array(),
array('query' => array('cache' => 1)),
);
- foreach($run_options as $options) {
+ foreach ($run_options as $options) {
$this->drupalPost('form-test/state-persist', array(), t('Submit'), $options);
// The submit handler outputs the value in $form_state, assert it's there.
$this->assertText('State persisted.');
diff --git a/modules/simpletest/tests/schema.test b/modules/simpletest/tests/schema.test
index 53e8ea723..8c6fa7f46 100644
--- a/modules/simpletest/tests/schema.test
+++ b/modules/simpletest/tests/schema.test
@@ -169,7 +169,7 @@ class SchemaTestCase extends DrupalWebTestCase {
}
// Finally, check each column and try to insert invalid values into them.
- foreach($table_spec['fields'] as $column_name => $column_spec) {
+ foreach ($table_spec['fields'] as $column_name => $column_spec) {
$this->assertTrue(db_field_exists($table_name, $column_name), t('Unsigned @type column was created.', array('@type' => $column_spec['type'])));
$this->assertFalse($this->tryUnsignedInsert($table_name, $column_name), t('Unsigned @type column rejected a negative value.', array('@type' => $column_spec['type'])));
}