diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 14:00:18 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 14:00:18 +0300 |
commit | 450e2f3bd308388e5df01b2b2ea38e6bf16b1c67 (patch) | |
tree | 78029410ea899a5105e512af8e7b7458e6d43717 /tests | |
parent | e42f262d85ddd891ce823dd5d9b5a4a87c8a7786 (diff) |
Move OC_Helper code to OCP\Util for linkToRemote
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/helper.php | 32 |
1 files changed, 0 insertions, 32 deletions
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 @@ -245,38 +245,6 @@ class Test_Helper extends \Test\TestCase { /** * @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 */ public function testLinkToPublic() { |