diff options
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/files/php-2.php | 1 | ||||
-rw-r--r-- | modules/simpletest/tests/cache.test | 4 | ||||
-rw-r--r-- | modules/simpletest/tests/common.test | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/modules/simpletest/files/php-2.php b/modules/simpletest/files/php-2.php index dc8e64213..615a8d78f 100644 --- a/modules/simpletest/files/php-2.php +++ b/modules/simpletest/files/php-2.php @@ -1,3 +1,2 @@ <?php print 'SimpleTest PHP was executed!'; -?>
\ No newline at end of file diff --git a/modules/simpletest/tests/cache.test b/modules/simpletest/tests/cache.test index 35baea8af..5b856c5a6 100644 --- a/modules/simpletest/tests/cache.test +++ b/modules/simpletest/tests/cache.test @@ -18,8 +18,8 @@ class CacheTestCase extends DrupalWebTestCase { * @return * TRUE on pass, FALSE on fail. */ - protected function checkCacheExists($cid, $var, $table = null) { - if ($table == null) { + protected function checkCacheExists($cid, $var, $table = NULL) { + if ($table == NULL) { $table = $this->default_table; } diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index 19a9cb54d..76f50977b 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -757,7 +757,7 @@ class DrupalDataApiTest extends DrupalWebTestCase { */ function testDrupalWriteRecord() { // Insert an object record for a table with a single-field primary key. - $vocabulary = new StdClass(); + $vocabulary = new stdClass(); $vocabulary->name = 'test'; $insert_result = drupal_write_record('taxonomy_vocabulary', $vocabulary); $this->assertTrue($insert_result == SAVED_NEW, t('Correct value returned when a record is inserted with drupal_write_record() for a table with a single-field primary key.')); @@ -769,7 +769,7 @@ class DrupalDataApiTest extends DrupalWebTestCase { $this->assertTrue($update_result == SAVED_UPDATED, t('Correct value returned when a record updated with drupal_write_record() for table with single-field primary key.')); // Insert an object record for a table with a multi-field primary key. - $vocabulary_node_type = new StdClass(); + $vocabulary_node_type = new stdClass(); $vocabulary_node_type->vid = $vocabulary->vid; $vocabulary_node_type->type = 'page'; $insert_result = drupal_write_record('taxonomy_vocabulary_node_type', $vocabulary_node_type); |