mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-27 21:15:40 +02:00
MINOR: permission code is case sensitive in some cases
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98017 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8afcd186f0
commit
3b7f93e0c0
@ -93,12 +93,12 @@ class ContentControllerTest extends FunctionalTest {
|
|||||||
public function testViewDraft(){
|
public function testViewDraft(){
|
||||||
|
|
||||||
// test when user does not have permission, should get login form
|
// test when user does not have permission, should get login form
|
||||||
$this->logInWithPermssion('editor');
|
$this->logInWithPermssion('EDITOR');
|
||||||
$this->assertEquals('403', $this->get('/contact/?stage=Stage')->getstatusCode());
|
$this->assertEquals('403', $this->get('/contact/?stage=Stage')->getstatusCode());
|
||||||
|
|
||||||
|
|
||||||
// test when user does have permission, should show page title and header ok.
|
// test when user does have permission, should show page title and header ok.
|
||||||
$this->logInWithPermssion('admin');
|
$this->logInWithPermssion('ADMIN');
|
||||||
$this->assertEquals('200', $this->get('/contact/?stage=Stage')->getstatusCode());
|
$this->assertEquals('200', $this->get('/contact/?stage=Stage')->getstatusCode());
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user