diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-08 18:29:52 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-10-08 18:29:52 +0200 |
commit | db345e4c6dccd690b9cc5f53642696ab73290daf (patch) | |
tree | b31618fbe87ac57e7e8495939042ddae4a5cbd01 /tests/lib/LegacyHelperTest.php | |
parent | 2a9e00635531a9b4269c9dc8fc97eeca1e6ce8cf (diff) | |
download | nextcloud-server-db345e4c6dccd690b9cc5f53642696ab73290daf.tar.gz nextcloud-server-db345e4c6dccd690b9cc5f53642696ab73290daf.zip |
Deprecate unused, private OC_Helper::linkToPublic
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/lib/LegacyHelperTest.php')
-rw-r--r-- | tests/lib/LegacyHelperTest.php | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/lib/LegacyHelperTest.php b/tests/lib/LegacyHelperTest.php index 736c5bf7fad..76f38706b4c 100644 --- a/tests/lib/LegacyHelperTest.php +++ b/tests/lib/LegacyHelperTest.php @@ -222,44 +222,6 @@ class LegacyHelperTest extends \Test\TestCase { ); } - // Url generator methods - - /** - * @small - * test linkToPublic URL construction - */ - public function testLinkToPublic() { - \OC::$WEBROOT = ''; - $result = \OC_Helper::linkToPublic('files'); - $this->assertEquals('http://localhost/s', $result); - $result = \OC_Helper::linkToPublic('files', false); - $this->assertEquals('http://localhost/s', $result); - $result = \OC_Helper::linkToPublic('files', true); - $this->assertEquals('http://localhost/s/', $result); - - $result = \OC_Helper::linkToPublic('other'); - $this->assertEquals('http://localhost/public.php?service=other', $result); - $result = \OC_Helper::linkToPublic('other', false); - $this->assertEquals('http://localhost/public.php?service=other', $result); - $result = \OC_Helper::linkToPublic('other', true); - $this->assertEquals('http://localhost/public.php?service=other/', $result); - - \OC::$WEBROOT = '/owncloud'; - $result = \OC_Helper::linkToPublic('files'); - $this->assertEquals('http://localhost/owncloud/s', $result); - $result = \OC_Helper::linkToPublic('files', false); - $this->assertEquals('http://localhost/owncloud/s', $result); - $result = \OC_Helper::linkToPublic('files', true); - $this->assertEquals('http://localhost/owncloud/s/', $result); - - $result = \OC_Helper::linkToPublic('other'); - $this->assertEquals('http://localhost/owncloud/public.php?service=other', $result); - $result = \OC_Helper::linkToPublic('other', false); - $this->assertEquals('http://localhost/owncloud/public.php?service=other', $result); - $result = \OC_Helper::linkToPublic('other', true); - $this->assertEquals('http://localhost/owncloud/public.php?service=other/', $result); - } - /** * Tests recursive folder deletion with rmdirr() */ |