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
This commit is contained in:
nate 2008-04-18 06:58:14 +00:00
parent 0793138c6c
commit 8756f0d471

View file

@ -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('/');