mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
ae62681706
commit
3d93a23f52
@ -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'
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user