summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Upload/ChunkingPluginTest.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-01-20 08:38:43 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2023-01-20 08:38:43 +0100
commit898d2923cce4e61e21a26fed06ad402452c0b3b1 (patch)
treee9f3b91311c880074ff317a45700e080340fece0 /apps/dav/tests/unit/Upload/ChunkingPluginTest.php
parent5e3a3c0c8faa45489aa6ac610728b4177501c198 (diff)
downloadnextcloud-server-898d2923cce4e61e21a26fed06ad402452c0b3b1.tar.gz
nextcloud-server-898d2923cce4e61e21a26fed06ad402452c0b3b1.zip
chore(dav): Add void return type to test methods
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/tests/unit/Upload/ChunkingPluginTest.php')
-rw-r--r--apps/dav/tests/unit/Upload/ChunkingPluginTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/dav/tests/unit/Upload/ChunkingPluginTest.php b/apps/dav/tests/unit/Upload/ChunkingPluginTest.php
index 4c22b803fc3..358908796a4 100644
--- a/apps/dav/tests/unit/Upload/ChunkingPluginTest.php
+++ b/apps/dav/tests/unit/Upload/ChunkingPluginTest.php
@@ -75,7 +75,7 @@ class ChunkingPluginTest extends TestCase {
$this->plugin->initialize($this->server);
}
- public function testBeforeMoveFutureFileSkip() {
+ public function testBeforeMoveFutureFileSkip(): void {
$node = $this->createMock(Directory::class);
$this->tree->expects($this->any())
@@ -88,7 +88,7 @@ class ChunkingPluginTest extends TestCase {
$this->assertNull($this->plugin->beforeMove('source', 'target'));
}
- public function testBeforeMoveDestinationIsDirectory() {
+ public function testBeforeMoveDestinationIsDirectory(): void {
$this->expectException(\Sabre\DAV\Exception\BadRequest::class);
$this->expectExceptionMessage('The given destination target is a directory.');
@@ -111,7 +111,7 @@ class ChunkingPluginTest extends TestCase {
$this->assertNull($this->plugin->beforeMove('source', 'target'));
}
- public function testBeforeMoveFutureFileSkipNonExisting() {
+ public function testBeforeMoveFutureFileSkipNonExisting(): void {
$sourceNode = $this->createMock(FutureFile::class);
$sourceNode->expects($this->once())
->method('getSize')
@@ -145,7 +145,7 @@ class ChunkingPluginTest extends TestCase {
$this->assertFalse($this->plugin->beforeMove('source', 'target'));
}
- public function testBeforeMoveFutureFileMoveIt() {
+ public function testBeforeMoveFutureFileMoveIt(): void {
$sourceNode = $this->createMock(FutureFile::class);
$sourceNode->expects($this->once())
->method('getSize')
@@ -185,7 +185,7 @@ class ChunkingPluginTest extends TestCase {
}
- public function testBeforeMoveSizeIsWrong() {
+ public function testBeforeMoveSizeIsWrong(): void {
$this->expectException(\Sabre\DAV\Exception\BadRequest::class);
$this->expectExceptionMessage('Chunks on server do not sum up to 4 but to 3 bytes');