diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 11:37:18 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 11:37:18 +0100 |
commit | 3d55569a277a68c9dac54b33684c3e22839386d8 (patch) | |
tree | e6757d4e1ebf7711ec674e3602ec9422c5b503e3 /tests | |
parent | 6a7dbf3cf24125bfac5089a4fae0a305591410de (diff) | |
download | nextcloud-server-3d55569a277a68c9dac54b33684c3e22839386d8.tar.gz nextcloud-server-3d55569a277a68c9dac54b33684c3e22839386d8.zip |
OC_Helper::makeURLAbsolute is not used anymore
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/helper.php | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/tests/lib/helper.php b/tests/lib/helper.php index 51f7342f456..794502e5e21 100644 --- a/tests/lib/helper.php +++ b/tests/lib/helper.php @@ -245,48 +245,6 @@ class Test_Helper extends \Test\TestCase { /** * @small - * test absolute URL construction - * @dataProvider provideDocRootURLs - */ - function testMakeAbsoluteURLDocRoot($url, $expectedResult) { - \OC::$WEBROOT = ''; - $result = \OC_Helper::makeURLAbsolute($url); - - $this->assertEquals($expectedResult, $result); - } - - /** - * @small - * test absolute URL construction - * @dataProvider provideSubDirURLs - */ - function testMakeAbsoluteURLSubDir($url, $expectedResult) { - \OC::$WEBROOT = '/owncloud'; - $result = \OC_Helper::makeURLAbsolute($url); - - $this->assertEquals($expectedResult, $result); - } - - public function provideDocRootURLs() { - return array( - array('index.php', 'http://localhost/index.php'), - array('/index.php', 'http://localhost/index.php'), - array('/apps/index.php', 'http://localhost/apps/index.php'), - array('apps/index.php', 'http://localhost/apps/index.php'), - ); - } - - public function provideSubDirURLs() { - return array( - array('index.php', 'http://localhost/owncloud/index.php'), - array('/index.php', 'http://localhost/owncloud/index.php'), - array('/apps/index.php', 'http://localhost/owncloud/apps/index.php'), - array('apps/index.php', 'http://localhost/owncloud/apps/index.php'), - ); - } - - /** - * @small * test linkToAbsolute URL construction * @dataProvider provideDocRootAppAbsoluteUrlParts */ |