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
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with
3 additions and
0 deletions
-
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.' |
|
|
|
|