summaryrefslogtreecommitdiffstats
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-02 15:45:58 +0000
commitd0e5c507f4e44e5ea574ebda98304ce33f4d04b6 (patch)
treefb9ff1d0e448829cbfaa1d8462b91d20d19d3819 /apps
parentae7105b99020429bec76b289d656d2c2c1e402cb (diff)
downloadnextcloud-server-d0e5c507f4e44e5ea574ebda98304ce33f4d04b6.tar.gz
nextcloud-server-d0e5c507f4e44e5ea574ebda98304ce33f4d04b6.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']],
];
}