summaryrefslogtreecommitdiff
path: root/modules/tracker
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/tracker
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/tracker')
-rw-r--r--modules/tracker/tracker.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/tracker/tracker.test b/modules/tracker/tracker.test
index 2f2249738..c5e853d82 100644
--- a/modules/tracker/tracker.test
+++ b/modules/tracker/tracker.test
@@ -29,11 +29,11 @@ class TrackerTest extends DrupalWebTestCase {
$this->drupalLogin($this->user);
$page1 = array(
- 'title' => $this->randomName(4, 'published_'),
+ 'title' => $this->randomName(8),
'status' => 1,
);
$page2 = array(
- 'title' => $this->randomName(4, 'unpublished_'),
+ 'title' => $this->randomName(8),
'status' => 0,
);
$this->drupalCreateNode($page1);
@@ -52,12 +52,12 @@ class TrackerTest extends DrupalWebTestCase {
$this->drupalLogin($this->user);
$page1 = array(
- 'title' => $this->randomName(4, 'published_'),
+ 'title' => $this->randomName(8),
'uid' => $this->user->uid,
'status' => 1,
);
$page2 = array(
- 'title' => $this->randomName(4, 'unpublished_'),
+ 'title' => $this->randomName(8),
'uid' => $this->user->uid,
'status' => 0,
);