aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-03-21 12:11:44 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-04-04 12:49:28 +0000
commitf95a800de2f9d160fb756a4a06d16b161c08294f (patch)
tree1dabb8a4a55b4c6facffb47bac97e03111a0a1e3 /apps
parent85491ff1e8662b2b89fcba555da02898cd96eeb6 (diff)
downloadnextcloud-server-f95a800de2f9d160fb756a4a06d16b161c08294f.tar.gz
nextcloud-server-f95a800de2f9d160fb756a4a06d16b161c08294f.zip
chore(dav): Fix tests for length headers on upload
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
index 4a9ca159bbd..ff864256cb7 100644
--- a/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
@@ -42,7 +42,6 @@ use Test\TestCase;
* See the COPYING-README file.
*/
class QuotaPluginTest extends TestCase {
-
/** @var \Sabre\DAV\Server | \PHPUnit\Framework\MockObject\MockObject */
private $server;
@@ -149,8 +148,8 @@ class QuotaPluginTest extends TestCase {
[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']],
+ [2048, ['OC-TOTAL-LENGTH' => '2048', 'X-EXPECTED-ENTITY-LENGTH' => 'A']],
+ [2048, ['OC-TOTAL-LENGTH' => '2048', 'CONTENT-LENGTH' => 'A']],
];
}