- Patch #268449 by catch: fixed some tests that failed due to invalid permissions.

merge-requests/26/head
Dries Buytaert 2008-06-09 16:33:20 +00:00
parent ecb032a239
commit 201e1dd356
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class CommentTestCase extends DrupalWebTestCase {
parent::setUp('comment');
// Create users.
$this->admin_user = $this->drupalCreateUser(array('administer content types', 'administer comments', 'administer permissions'));
$this->web_user = $this->drupalCreateUser(array('access comments', 'post comments', 'create story content'));
$this->web_user = $this->drupalCreateUser(array('access comments', 'post comments', 'create article content'));
$this->drupalLogin($this->web_user);
$this->node = $this->drupalCreateNode(array('type' => 'article'));

View File

@ -144,7 +144,7 @@ class IPAddressBlockingTestCase extends DrupalWebTestCase {
parent::setUp();
// Create user.
$this->blocking_user = $this->drupalCreateUser(array('block IP addresses', 'access statistics'));
$this->blocking_user = $this->drupalCreateUser(array('block IP addresses'));
$this->drupalLogin($this->blocking_user);
}