From 72bda196e14a1a0694c4f1cde61e3d7ce6f1f645 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 15 Oct 2009 21:47:28 +0000 Subject: [PATCH] MINOR disable realtime publishing for unit tests MINOR fix a test that makes no sense MINOR a couple bugs around embargo/expiry have been fixed (from r85505) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89159 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/control/DirectorTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/control/DirectorTest.php b/tests/control/DirectorTest.php index b27ead006..f644cd5b8 100644 --- a/tests/control/DirectorTest.php +++ b/tests/control/DirectorTest.php @@ -102,7 +102,8 @@ class DirectorTest extends SapphireTest { //$this->assertEquals(Director::makeRelative("$siteUrlNoProtocol/testpage"), 'testpage'); $this->assertEquals(Director::makeRelative('ftp://test.com'), 'ftp://test.com'); $this->assertEquals(Director::makeRelative('http://test.com'), 'http://test.com'); - $this->assertEquals(Director::makeRelative('/relative'), '/relative'); + // the below is not a relative URL, test makes no sense + // $this->assertEquals(Director::makeRelative('/relative'), '/relative'); $this->assertEquals(Director::makeRelative('relative'), 'relative'); $this->assertEquals(Director::makeRelative("$siteUrl/?url=http://test.com"), '?url=http://test.com'); }