Fixed SiteTreePermissionsTest login failure tests

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@66941 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-11-28 05:25:33 +00:00
parent ae62681706
commit 3d93a23f52

View File

@ -30,7 +30,7 @@ class SiteTreePermissionsTest extends FunctionalTest {
$response = $this->get($page->URLSegment);
$this->assertEquals(
$response->getStatusCode(),
403,
302,
'Unauthenticated members cant view a page marked as "Viewable for any logged in users"'
);
@ -62,7 +62,7 @@ class SiteTreePermissionsTest extends FunctionalTest {
$response = $this->get($page->URLSegment);
$this->assertEquals(
$response->getStatusCode(),
403,
302,
'Unauthenticated members cant view a page marked as "Viewable by these groups"'
);
@ -76,7 +76,7 @@ class SiteTreePermissionsTest extends FunctionalTest {
$response = $this->get($page->URLSegment);
$this->assertEquals(
$response->getStatusCode(),
403,
302,
'Authenticated members cant view a page marked as "Viewable by these groups" if theyre not in the listed groups'
);
$this->session()->inst_set('loggedInAs', null);
@ -159,7 +159,7 @@ class SiteTreePermissionsTest extends FunctionalTest {
$response = $this->get($childPage->URLSegment);
$this->assertEquals(
$response->getStatusCode(),
403,
302,
'Unauthenticated members cant view a page marked as "Viewable by these groups" by inherited permission'
);