aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/LegacyHelperTest.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-28 11:05:28 +0100
committerMorris Jobke <hey@morrisjobke.de>2019-03-04 12:14:22 +0100
commitc6a69ba92514587814d0f03b51e1d1f026a49350 (patch)
treeb7162fff445ea0595280b535b95a60b689f742dd /tests/lib/LegacyHelperTest.php
parent814bf0de20b05ef44d4558d49cc3dc655da1c58d (diff)
downloadnextcloud-server-c6a69ba92514587814d0f03b51e1d1f026a49350.tar.gz
nextcloud-server-c6a69ba92514587814d0f03b51e1d1f026a49350.zip
Remove the upload and memory setting
* Remove unneeded private method phpFileSize() * Bump autoloader * Remove setUploadLimit tests * Remove integrity check hacks for upload limit Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/lib/LegacyHelperTest.php')
-rw-r--r--tests/lib/LegacyHelperTest.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/lib/LegacyHelperTest.php b/tests/lib/LegacyHelperTest.php
index 76f38706b4c..96cd190fd62 100644
--- a/tests/lib/LegacyHelperTest.php
+++ b/tests/lib/LegacyHelperTest.php
@@ -47,28 +47,6 @@ class LegacyHelperTest extends \Test\TestCase {
}
/**
- * @dataProvider phpFileSizeProvider
- */
- public function testPhpFileSize($expected, $input)
- {
- $result = OC_Helper::phpFileSize($input);
- $this->assertEquals($expected, $result);
- }
-
- public function phpFileSizeProvider()
- {
- return array(
- array('0B', 0),
- array('1K', 1024),
- array('9.5M', 10000000),
- array('1.3G', 1395864371),
- array('465.7G', 500000000000),
- array('465661.3G', 500000000000000),
- array('465661287.3G', 500000000000000000),
- );
- }
-
- /**
* @dataProvider providesComputerFileSize
*/
function testComputerFileSize($expected, $input) {