summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/cache.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-29 12:08:28 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-29 12:08:28 +0000
commite72114736394ccfc33247b3f9093ed3f5b0f4916 (patch)
treec7dce1a3d55af834ef517815616de08d1e0e6173 /modules/simpletest/tests/cache.test
parent7bf8e72aaa3f1f287a9666a478eb190941a1758a (diff)
downloadbrdo-e72114736394ccfc33247b3f9093ed3f5b0f4916.tar.gz
brdo-e72114736394ccfc33247b3f9093ed3f5b0f4916.tar.bz2
- Patch #295864 by boombatower: cleaned up the randomName() method by removing unnecessary prefix code, and added a new randomString() method which includes characters like spaces.
Diffstat (limited to 'modules/simpletest/tests/cache.test')
-rw-r--r--modules/simpletest/tests/cache.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/simpletest/tests/cache.test b/modules/simpletest/tests/cache.test
index 31d13c3e7..35baea8af 100644
--- a/modules/simpletest/tests/cache.test
+++ b/modules/simpletest/tests/cache.test
@@ -114,7 +114,7 @@ class CacheSavingCase extends CacheTestCase {
* Test the saving and restoring of a string.
*/
function testString() {
- $this->checkVariable($this->randomName('100'));
+ $this->checkVariable($this->randomName(100));
}
/**
@@ -143,7 +143,7 @@ class CacheSavingCase extends CacheTestCase {
*/
function testObject() {
$test_object = new stdClass();
- $test_object->test1 = $this->randomName('100');
+ $test_object->test1 = $this->randomName(100);
$test_object->test2 = 100;
$test_object->test3 = array('drupal1', 'drupal2' => 'drupal3', 'drupal4' => array('drupal5', 'drupal6'));