From 85854034093d2aedf3439a2d931c0df44bfd1589 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 28 Apr 2010 11:40:25 +0000 Subject: [PATCH] MINOR Fixed BlogHolderFunctionalTest links --- tests/BlogHolderFunctionalTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/BlogHolderFunctionalTest.php b/tests/BlogHolderFunctionalTest.php index 934c524..e229e0e 100644 --- a/tests/BlogHolderFunctionalTest.php +++ b/tests/BlogHolderFunctionalTest.php @@ -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->Link()); + $response = $this->get($blogEntry->RelativeLink()); $securityID = Session::get('SecurityID'); // without login @@ -48,4 +48,4 @@ class BlogHolderFunctionalTest extends FunctionalTest { $this->assertType('BlogEntry', DataObject::get_one('BlogEntry', sprintf("\"Title\" = 'Allowed'"))); } -} \ No newline at end of file +}