Browse Source

Make sure we can also run with escapedshell args

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/23780/head
Roeland Jago Douma 5 years ago
parent
commit
a25b46f494
No known key found for this signature in database GPG Key ID: F941078878347C0C
  1. 3
      tests/lib/LargeFileHelperGetFileSizeTest.php

3
tests/lib/LargeFileHelperGetFileSizeTest.php

@ -60,6 +60,9 @@ class LargeFileHelperGetFileSizeTest extends TestCase {
* @dataProvider dataFileNameProvider
*/
public function testGetFileSizeViaExec($filename, $fileSize) {
if (escapeshellarg('strängé') !== '\'strängé\'') {
$this->markTestSkipped('Your escapeshell args removes accents');
}
if (!\OC_Helper::is_function_enabled('exec')) {
$this->markTestSkipped(
'The exec() function needs to be enabled for this test.'

Loading…
Cancel
Save