From 8756f0d47193fa92a418184d4ecb2cdbcf6cefe1 Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 18 Apr 2008 06:58:14 +0000 Subject: [PATCH] Adding test case for generating full-base absolute URLs, disproves and closes #4470 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6694 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/router.test.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cake/tests/cases/libs/router.test.php b/cake/tests/cases/libs/router.test.php index 45543958d..4c0fb7483 100644 --- a/cake/tests/cases/libs/router.test.php +++ b/cake/tests/cases/libs/router.test.php @@ -45,6 +45,10 @@ class RouterTest extends UnitTestCase { unset($this->router->testVar); } + function testFullBaseURL() { + $this->assertPattern('/^http(s)?:\/\//', $this->router->url('/', true)); + } + function testRouteWriting() { $this->router->reload(); $this->router->connect('/');