From e72114736394ccfc33247b3f9093ed3f5b0f4916 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 29 Apr 2009 12:08:28 +0000 Subject: - 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. --- modules/upload/upload.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/upload/upload.test') diff --git a/modules/upload/upload.test b/modules/upload/upload.test index 1fabe2c62..ffbfd8680 100644 --- a/modules/upload/upload.test +++ b/modules/upload/upload.test @@ -218,7 +218,7 @@ class UploadTestCase extends DrupalWebTestCase { */ function getSimpletestRoleId($user) { foreach ($user->roles as $rid => $role) { - if (strpos($role, 'simpletest') !== FALSE) { + if (preg_match('/s\d+/', $role)) { return $rid; } } -- cgit v1.2.3