Skip to content
Snippets Groups Projects
Commit 201e1dd3 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent ecb032a2
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ class CommentTestCase extends DrupalWebTestCase { ...@@ -24,7 +24,7 @@ class CommentTestCase extends DrupalWebTestCase {
parent::setUp('comment'); parent::setUp('comment');
// Create users. // Create users.
$this->admin_user = $this->drupalCreateUser(array('administer content types', 'administer comments', 'administer permissions')); $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->drupalLogin($this->web_user);
$this->node = $this->drupalCreateNode(array('type' => 'article')); $this->node = $this->drupalCreateNode(array('type' => 'article'));
......
...@@ -144,7 +144,7 @@ class IPAddressBlockingTestCase extends DrupalWebTestCase { ...@@ -144,7 +144,7 @@ class IPAddressBlockingTestCase extends DrupalWebTestCase {
parent::setUp(); parent::setUp();
// Create user. // 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); $this->drupalLogin($this->blocking_user);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment