diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-03-31 15:12:53 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-03-31 15:12:53 +0200 |
commit | 691c353eeda077be0fcca1e3839265815a650a90 (patch) | |
tree | 192d545d4c29b04ce61b5603d62a845de7466ac4 /tests | |
parent | b216b3fad0517b706457f74597b1ec7a7772a2b3 (diff) | |
parent | 53f67fc65ded57fe77b7c1ac345abd4b93b8434a (diff) | |
download | nextcloud-server-691c353eeda077be0fcca1e3839265815a650a90.tar.gz nextcloud-server-691c353eeda077be0fcca1e3839265815a650a90.zip |
Merge pull request #15335 from owncloud/revert-15215-ext-gdrivelistfilequoting
Revert "Properly quote file names in listFiles query for GDrive"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/storage/storage.php | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/tests/lib/files/storage/storage.php b/tests/lib/files/storage/storage.php index ad7522f1ea8..30f403d60df 100644 --- a/tests/lib/files/storage/storage.php +++ b/tests/lib/files/storage/storage.php @@ -104,14 +104,13 @@ abstract class Storage extends \Test\TestCase { } public function directoryProvider() { - return [ - ['folder'], - [' folder'], - ['folder '], - ['folder with space'], - ['spéciäl földer'], - ['test single\'quote'], - ]; + return array( + array('folder'), + array(' folder'), + array('folder '), + array('folder with space'), + array('spéciäl földer'), + ); } function loremFileProvider() { @@ -164,16 +163,15 @@ abstract class Storage extends \Test\TestCase { public function copyAndMoveProvider() { - return [ - ['/source.txt', '/target.txt'], - ['/source.txt', '/target with space.txt'], - ['/source with space.txt', '/target.txt'], - ['/source with space.txt', '/target with space.txt'], - ['/source.txt', '/tärgét.txt'], - ['/sòurcē.txt', '/target.txt'], - ['/sòurcē.txt', '/tärgét.txt'], - ['/single \' quote.txt', '/tar\'get.txt'], - ]; + return array( + array('/source.txt', '/target.txt'), + array('/source.txt', '/target with space.txt'), + array('/source with space.txt', '/target.txt'), + array('/source with space.txt', '/target with space.txt'), + array('/source.txt', '/tärgét.txt'), + array('/sòurcē.txt', '/target.txt'), + array('/sòurcē.txt', '/tärgét.txt'), + ); } public function initSourceAndTarget ($source, $target = null) { |