Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-06-09 20:07:13 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2015-06-10 11:34:16 +0300
commit51ebcfbdfe7ad33a675f00fb3131b3c6a033d1c0 (patch)
treeeded5b85b39a2ad9b6fe91cf0584610d515bc104 /tests
parent4861a0d7b6c4f81b895dc7a228cd4da29da8530d (diff)
Allow opening of empty files ('', '0', 0)
Diffstat (limited to 'tests')
-rw-r--r--tests/controller/filehandlingcontrollertest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/controller/filehandlingcontrollertest.php b/tests/controller/filehandlingcontrollertest.php
index 34cfa02..901e904 100644
--- a/tests/controller/filehandlingcontrollertest.php
+++ b/tests/controller/filehandlingcontrollertest.php
@@ -109,6 +109,8 @@ class FileHandlingControllerTest extends TestCase {
public function dataTestLoad() {
return array(
array('test.txt', 'file content', 200, ''),
+ array('test.txt', '', 200, ''),
+ array('test.txt', '0', 200, ''),
array('', 'file content', 400, 'Invalid file path supplied.'),
array('test.txt', false, 400, 'Can not read the file.'),
);