From 450e2f3bd308388e5df01b2b2ea38e6bf16b1c67 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 18 Dec 2015 12:00:18 +0100 Subject: Move OC_Helper code to OCP\Util for linkToRemote --- tests/lib/helper.php | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'tests/lib') diff --git a/tests/lib/helper.php b/tests/lib/helper.php index 22737f170d8..468d32bc37a 100644 --- a/tests/lib/helper.php +++ b/tests/lib/helper.php @@ -243,38 +243,6 @@ class Test_Helper extends \Test\TestCase { // Url generator methods - /** - * @small - * test linkToRemoteBase URL construction - */ - public function testLinkToRemoteBase() { - \OC::$WEBROOT = ''; - $result = \OC_Helper::linkToRemoteBase('webdav'); - $this->assertEquals('/remote.php/webdav', $result); - - \OC::$WEBROOT = '/owncloud'; - $result = \OC_Helper::linkToRemoteBase('webdav'); - $this->assertEquals('/owncloud/remote.php/webdav', $result); - } - - /** - * @small - * test linkToRemote URL construction - */ - public function testLinkToRemote() { - \OC::$WEBROOT = ''; - $result = \OC_Helper::linkToRemote('webdav'); - $this->assertEquals('http://localhost/remote.php/webdav/', $result); - $result = \OC_Helper::linkToRemote('webdav', false); - $this->assertEquals('http://localhost/remote.php/webdav', $result); - - \OC::$WEBROOT = '/owncloud'; - $result = \OC_Helper::linkToRemote('webdav'); - $this->assertEquals('http://localhost/owncloud/remote.php/webdav/', $result); - $result = \OC_Helper::linkToRemote('webdav', false); - $this->assertEquals('http://localhost/owncloud/remote.php/webdav', $result); - } - /** * @small * test linkToPublic URL construction -- cgit v1.2.3