Loading project_issue.test +13 −3 Changes for project_issue.test: 13 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -139,14 +139,24 @@ class ProjectIssueCreationTestCase extends ProjectIssueWebTestCase { $this->drupalGet("node/$issue->nid/edit"); $this->assertResponse(200, t('A user with "edit own project issues" can access the edit tab for an issue she owns.')); $this->drupalLogin($this->auth_user); $this->drupalGet("node/$issue->nid/edit"); $this->assertResponse(403, t('A user with no issue editing permissions is denied access to the edit tab for an issue.')); $this->drupalLogin($this->power_user); $this->drupalGet("node/$issue->nid/edit"); $this->assertResponse(200, t('A user with "edit any project issues" can access the edit tab for an issue she does not own.')); $this->drupalLogin($this->auth_user); $this->drupalGet("node/$issue->nid/edit"); $this->assertResponse(403, t('A user with no issue editing permissions is denied access to the edit tab for an issue.')); // Create an issue owned by the power user. $power_issue = $this->createIssue($project, array( 'component' => 'Miscellaneous', 'category' => 'feature', 'priority' => 1, )); $this->drupalLogin($this->maintain_user); $this->drupalGet("node/$power_issue->nid/edit"); $this->assertResponse(403, t('A user with "edit own project issues" is denied access to the edit tab for an issue she does not own.')); } } Loading Loading
project_issue.test +13 −3 Changes for project_issue.test: 13 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -139,14 +139,24 @@ class ProjectIssueCreationTestCase extends ProjectIssueWebTestCase { $this->drupalGet("node/$issue->nid/edit"); $this->assertResponse(200, t('A user with "edit own project issues" can access the edit tab for an issue she owns.')); $this->drupalLogin($this->auth_user); $this->drupalGet("node/$issue->nid/edit"); $this->assertResponse(403, t('A user with no issue editing permissions is denied access to the edit tab for an issue.')); $this->drupalLogin($this->power_user); $this->drupalGet("node/$issue->nid/edit"); $this->assertResponse(200, t('A user with "edit any project issues" can access the edit tab for an issue she does not own.')); $this->drupalLogin($this->auth_user); $this->drupalGet("node/$issue->nid/edit"); $this->assertResponse(403, t('A user with no issue editing permissions is denied access to the edit tab for an issue.')); // Create an issue owned by the power user. $power_issue = $this->createIssue($project, array( 'component' => 'Miscellaneous', 'category' => 'feature', 'priority' => 1, )); $this->drupalLogin($this->maintain_user); $this->drupalGet("node/$power_issue->nid/edit"); $this->assertResponse(403, t('A user with "edit own project issues" is denied access to the edit tab for an issue she does not own.')); } } Loading