mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: permission code is case sensitive in some cases (from r98017)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102566 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
647c3f285d
commit
5c71cbbffa
@ -93,12 +93,12 @@ class ContentControllerTest extends FunctionalTest {
|
||||
public function testViewDraft(){
|
||||
|
||||
// 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());
|
||||
|
||||
|
||||
// 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());
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user