]> source.dussan.org Git - nextcloud-server.git/commitdiff
chore(dav): Fix tests for length headers on upload 44624/head
authorCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 21 Mar 2024 11:11:44 +0000 (12:11 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 2 Apr 2024 15:45:58 +0000 (15:45 +0000)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php

index 4a9ca159bbd8cedfd842d9d680535a34966e8e37..ff864256cb755e7cdd6d964dcc6e210f1c4af450 100644 (file)
@@ -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']],
                ];
        }