mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Added unittest for REQUEST_URI with multiple FQDNs.
This commit is contained in:
parent
b7b6859c27
commit
13dc397172
1 changed files with 4 additions and 0 deletions
|
@ -140,6 +140,10 @@ class CakeRequestTest extends CakeTestCase {
|
|||
$_SERVER['REQUEST_URI'] = '/some/path?url=http://cakephp.org';
|
||||
$request = new CakeRequest();
|
||||
$this->assertEquals('some/path', $request->url);
|
||||
|
||||
$_SERVER['REQUEST_URI'] = FULL_BASE_URL.'/other/path?url=http://cakephp.org';
|
||||
$request = new CakeRequest();
|
||||
$this->assertEquals('other/path', $request->url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue