mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 09:05:58 +00:00
MINOR Fixed BlogHolderFunctionalTest to work with nested urls
This commit is contained in:
parent
7ca1e34476
commit
4c91dff9b2
@ -19,7 +19,7 @@ class BlogHolderFunctionalTest extends FunctionalTest {
|
|||||||
function testFrontendBlogPostRequiresPermission() {
|
function testFrontendBlogPostRequiresPermission() {
|
||||||
// get valid SecurityID (from comments form, would usually be copy/pasted)
|
// get valid SecurityID (from comments form, would usually be copy/pasted)
|
||||||
$blogEntry = $this->objFromFixture('BlogEntry', 'entry1');
|
$blogEntry = $this->objFromFixture('BlogEntry', 'entry1');
|
||||||
$response = $this->get($blogEntry->URLSegment);
|
$response = $this->get($blogEntry->Link());
|
||||||
$securityID = Session::get('SecurityID');
|
$securityID = Session::get('SecurityID');
|
||||||
|
|
||||||
// without login
|
// without login
|
||||||
@ -37,7 +37,6 @@ class BlogHolderFunctionalTest extends FunctionalTest {
|
|||||||
$blogEditor = $this->objFromFixture('Member', 'blog_editor');
|
$blogEditor = $this->objFromFixture('Member', 'blog_editor');
|
||||||
$this->session()->inst_set('loggedInAs', $blogEditor->ID);
|
$this->session()->inst_set('loggedInAs', $blogEditor->ID);
|
||||||
Permission::flush_permission_cache();
|
Permission::flush_permission_cache();
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
'Title'=>'Allowed',
|
'Title'=>'Allowed',
|
||||||
'Author'=>'Allowed',
|
'Author'=>'Allowed',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user