summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-14 09:09:21 +0200
committerJoas Schilling <coding@schilljs.com>2016-10-19 09:28:54 +0200
commit05223a39f9f29181c242cc6952c91b74a70c969a (patch)
tree3ed676467a3e9aaaf80c733eaa74d09182ce5835 /apps/dav/tests
parent46406f517aa7c07f148d69d69a5f61306d140ec3 (diff)
downloadnextcloud-server-05223a39f9f29181c242cc6952c91b74a70c969a.tar.gz
nextcloud-server-05223a39f9f29181c242cc6952c91b74a70c969a.zip
Make sure we only use numbers as length
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
index 48c920541a8..89bc1ee8adb 100644
--- a/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
@@ -132,6 +132,12 @@ class QuotaPluginTest extends \Test\TestCase {
array(512, array('CONTENT-LENGTH' => '512')),
array(2048, array('OC-TOTAL-LENGTH' => '2048', 'CONTENT-LENGTH' => '1024')),
array(4096, array('OC-TOTAL-LENGTH' => '2048', 'X-EXPECTED-ENTITY-LENGTH' => '4096')),
+ [null, ['X-EXPECTED-ENTITY-LENGTH' => 'A']],
+ [null, ['CONTENT-LENGTH' => 'A']],
+ [1024, ['OC-TOTAL-LENGTH' => 'A', 'CONTENT-LENGTH' => '1024']],
+ [1024, ['OC-TOTAL-LENGTH' => 'A', 'X-EXPECTED-ENTITY-LENGTH' => '1024']],
+ [null, ['OC-TOTAL-LENGTH' => '2048', 'X-EXPECTED-ENTITY-LENGTH' => 'A']],
+ [null, ['OC-TOTAL-LENGTH' => '2048', 'CONTENT-LENGTH' => 'A']],
);
}