From 26395c843fd6e96743cfc929ca01f004a45abfe6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 22 Apr 2009 09:57:10 +0000 Subject: - Patch #308296 by Dave Reid, Damien Tournoud: clean-up of drupalCreateNode(). --- modules/path/path.test | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules/path/path.test') 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. -- cgit v1.2.3