From eeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 24 May 2015 16:02:25 -0400 Subject: Helpers refactoring --- tests/units/HelperTest.php | 50 ---------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 tests/units/HelperTest.php (limited to 'tests/units/HelperTest.php') diff --git a/tests/units/HelperTest.php b/tests/units/HelperTest.php deleted file mode 100644 index 57d1940a..00000000 --- a/tests/units/HelperTest.php +++ /dev/null @@ -1,50 +0,0 @@ -container); - - $this->assertEquals('

Test

', $h->markdown('Test')); - - $this->assertEquals( - '

Task #123

', - $h->markdown('Task #123') - ); - - $this->assertEquals( - '

Task #123

', - $h->markdown('Task #123', array('controller' => 'a', 'action' => 'b', 'params' => array('c' => 'd'))) - ); - - $this->assertEquals( - '

Check that: http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454

', - $h->markdown( - 'Check that: http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454', - array('controller' => 'a', 'action' => 'b', 'params' => array('c' => 'd')) - ) - ); - } - - public function testGetCurrentBaseUrl() - { - $h = new Helper($this->container); - - $_SERVER['PHP_SELF'] = '/'; - $_SERVER['SERVER_NAME'] = 'localhost'; - $_SERVER['SERVER_PORT'] = 1234; - - $this->assertEquals('http://localhost:1234/', $h->getCurrentBaseUrl()); - - $c = new Config($this->container); - $c->save(array('application_url' => 'https://mykanboard/')); - $this->assertEquals('https://mykanboard/', $c->get('application_url')); - $this->assertEquals('https://mykanboard/', $h->getCurrentBaseUrl()); - } -} -- cgit v1.2.3