diff options
| author | Lesstat <florianbarth@gmx.de> | 2015-07-11 11:44:26 +0200 |
|---|---|---|
| committer | Lesstat <florianbarth@gmx.de> | 2015-07-11 11:44:26 +0200 |
| commit | a85a1c613239c20fe72eb96c2921f4c220ec156b (patch) | |
| tree | d032b4591e518cbbbfaa8886f8f5d98a6ea2efb7 /tests/units/UrlHelperTest.php | |
| parent | 5101eaa8060ce3c75a81a26f6e47aae40e3d4ac3 (diff) | |
| parent | 7e94d0ca233d15d6124c0adf3f956a119c82ccae (diff) | |
Merged branch 'master' of https://github.com/fguillot/kanboard
only imports conflicted
Diffstat (limited to 'tests/units/UrlHelperTest.php')
| -rw-r--r-- | tests/units/UrlHelperTest.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/units/UrlHelperTest.php b/tests/units/UrlHelperTest.php index d70842aa..3ef3402a 100644 --- a/tests/units/UrlHelperTest.php +++ b/tests/units/UrlHelperTest.php @@ -38,22 +38,26 @@ class UrlHelperTest extends Base { $h = new Url($this->container); + $this->assertEquals('http://localhost/', $h->server()); + $_SERVER['PHP_SELF'] = '/'; - $_SERVER['SERVER_NAME'] = 'localhost'; + $_SERVER['SERVER_NAME'] = 'kb'; $_SERVER['SERVER_PORT'] = 1234; - $this->assertEquals('http://localhost:1234/', $h->server()); + $this->assertEquals('http://kb:1234/', $h->server()); } public function testBase() { $h = new Url($this->container); + $this->assertEquals('http://localhost/', $h->base()); + $_SERVER['PHP_SELF'] = '/'; - $_SERVER['SERVER_NAME'] = 'localhost'; + $_SERVER['SERVER_NAME'] = 'kb'; $_SERVER['SERVER_PORT'] = 1234; - $this->assertEquals('http://localhost:1234/', $h->base()); + $this->assertEquals('http://kb:1234/', $h->base()); $c = new Config($this->container); $c->save(array('application_url' => 'https://mykanboard/')); |
