summaryrefslogtreecommitdiff
path: root/modules/path
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-22 09:57:10 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-22 09:57:10 +0000
commit26395c843fd6e96743cfc929ca01f004a45abfe6 (patch)
tree6639d0c04c05fa182dafab5b8abbb2fa72c2b32d /modules/path
parent526401c4c8f7e1a8126c4810a7d7023c4f8bafc5 (diff)
downloadbrdo-26395c843fd6e96743cfc929ca01f004a45abfe6.tar.gz
brdo-26395c843fd6e96743cfc929ca01f004a45abfe6.tar.bz2
- Patch #308296 by Dave Reid, Damien Tournoud: clean-up of drupalCreateNode().
Diffstat (limited to 'modules/path')
-rw-r--r--modules/path/path.test7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/path/path.test b/modules/path/path.test
index 18e2b6939..13b46313e 100644
--- a/modules/path/path.test
+++ b/modules/path/path.test
@@ -15,8 +15,9 @@ class PathTestCase extends DrupalWebTestCase {
*/
function setUp() {
parent::setUp('path');
- // create and login user
- $web_user = $this->drupalCreateUser(array('edit any page content', 'create page content', 'administer url aliases', 'create url aliases'));
+
+ // Create test user and login.
+ $web_user = $this->drupalCreateUser(array('create page content', 'edit own page content', 'administer url aliases', 'create url aliases'));
$this->drupalLogin($web_user);
}
@@ -24,7 +25,7 @@ class PathTestCase extends DrupalWebTestCase {
* Test alias functionality through the admin interfaces.
*/
function testAdminAlias() {
- // create test node
+ // Create test node.
$node1 = $this->drupalCreateNode();
// Create alias.