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:
Ingo Schommer 2010-04-13 01:48:59 +00:00
parent 647c3f285d
commit 5c71cbbffa

View File

@ -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());