mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02: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() {
|
||||
// get valid SecurityID (from comments form, would usually be copy/pasted)
|
||||
$blogEntry = $this->objFromFixture('BlogEntry', 'entry1');
|
||||
$response = $this->get($blogEntry->URLSegment);
|
||||
$response = $this->get($blogEntry->Link());
|
||||
$securityID = Session::get('SecurityID');
|
||||
|
||||
// without login
|
||||
@ -37,7 +37,6 @@ class BlogHolderFunctionalTest extends FunctionalTest {
|
||||
$blogEditor = $this->objFromFixture('Member', 'blog_editor');
|
||||
$this->session()->inst_set('loggedInAs', $blogEditor->ID);
|
||||
Permission::flush_permission_cache();
|
||||
|
||||
$data = array(
|
||||
'Title'=>'Allowed',
|
||||
'Author'=>'Allowed',
|
||||
|
Loading…
Reference in New Issue
Block a user