- Patch #268449 by catch: fixed some tests that failed due to invalid permissions.
parent
ecb032a239
commit
201e1dd356
|
@ -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'));
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue