mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 10:36:16 +00:00
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:
parent
0793138c6c
commit
8756f0d471
1 changed files with 4 additions and 0 deletions
|
@ -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('/');
|
||||
|
|
Loading…
Add table
Reference in a new issue