summaryrefslogtreecommitdiff
path: root/tests/units/UrlHelperTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-05 12:23:00 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-05 12:23:00 -0400
commit4438e03c62962ecf6265eddcb3d2c6e761638cda (patch)
tree426da61f5b1721397b56548f13d429c21b3b8976 /tests/units/UrlHelperTest.php
parent45774afafcae850ecf71ea90b426fffc2c6f0628 (diff)
Set the assignee as organizer for ical events
Diffstat (limited to 'tests/units/UrlHelperTest.php')
-rw-r--r--tests/units/UrlHelperTest.php12
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/'));