diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 11:46:21 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 11:46:21 +0100 |
commit | e42f262d85ddd891ce823dd5d9b5a4a87c8a7786 (patch) | |
tree | 886ea4f3eceae73a52fb582b55185bad3dfa0b07 /tests | |
parent | 3d55569a277a68c9dac54b33684c3e22839386d8 (diff) | |
download | nextcloud-server-e42f262d85ddd891ce823dd5d9b5a4a87c8a7786.tar.gz nextcloud-server-e42f262d85ddd891ce823dd5d9b5a4a87c8a7786.zip |
properly use OCP\Util instead of OC_Helper
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/helper.php | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/tests/lib/helper.php b/tests/lib/helper.php index 794502e5e21..22737f170d8 100644 --- a/tests/lib/helper.php +++ b/tests/lib/helper.php @@ -245,52 +245,6 @@ class Test_Helper extends \Test\TestCase { /** * @small - * test linkToAbsolute URL construction - * @dataProvider provideDocRootAppAbsoluteUrlParts - */ - public function testLinkToAbsoluteDocRoot($app, $file, $args, $expectedResult) { - \OC::$WEBROOT = ''; - $result = \OC_Helper::linkToAbsolute($app, $file, $args); - - $this->assertEquals($expectedResult, $result); - } - - /** - * @small - * test linkToAbsolute URL construction in sub directory - * @dataProvider provideSubDirAppAbsoluteUrlParts - */ - public function testLinkToAbsoluteSubDir($app, $file, $args, $expectedResult) { - \OC::$WEBROOT = '/owncloud'; - $result = \OC_Helper::linkToAbsolute($app, $file, $args); - - $this->assertEquals($expectedResult, $result); - } - - /** - * @return array - */ - public function provideDocRootAppAbsoluteUrlParts() { - return array( - array('files', 'ajax/list.php', array(), 'http://localhost/index.php/apps/files/ajax/list.php'), - array('files', 'ajax/list.php', array('trut' => 'trat', 'dut' => 'dat'), 'http://localhost/index.php/apps/files/ajax/list.php?trut=trat&dut=dat'), - array('', 'index.php', array('trut' => 'trat', 'dut' => 'dat'), 'http://localhost/index.php?trut=trat&dut=dat'), - ); - } - - /** - * @return array - */ - public function provideSubDirAppAbsoluteUrlParts() { - return array( - array('files', 'ajax/list.php', array(), 'http://localhost/owncloud/index.php/apps/files/ajax/list.php'), - array('files', 'ajax/list.php', array('trut' => 'trat', 'dut' => 'dat'), 'http://localhost/owncloud/index.php/apps/files/ajax/list.php?trut=trat&dut=dat'), - array('', 'index.php', array('trut' => 'trat', 'dut' => 'dat'), 'http://localhost/owncloud/index.php?trut=trat&dut=dat'), - ); - } - - /** - * @small * test linkToRemoteBase URL construction */ public function testLinkToRemoteBase() { |