aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Comments/EntityCollectionTest.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/Comments/EntityCollectionTest.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/Comments/EntityCollectionTest.php')
-rw-r--r--apps/dav/tests/unit/Comments/EntityCollectionTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/dav/tests/unit/Comments/EntityCollectionTest.php b/apps/dav/tests/unit/Comments/EntityCollectionTest.php
index f95dbf839ee..ec98441d252 100644
--- a/apps/dav/tests/unit/Comments/EntityCollectionTest.php
+++ b/apps/dav/tests/unit/Comments/EntityCollectionTest.php
@@ -71,11 +71,11 @@ class EntityCollectionTest extends \Test\TestCase {
);
}
- public function testGetId() {
+ public function testGetId(): void {
$this->assertSame($this->collection->getId(), '19');
}
- public function testGetChild() {
+ public function testGetChild(): void {
$this->commentsManager->expects($this->once())
->method('get')
->with('55')
@@ -90,7 +90,7 @@ class EntityCollectionTest extends \Test\TestCase {
}
- public function testGetChildException() {
+ public function testGetChildException(): void {
$this->expectException(\Sabre\DAV\Exception\NotFound::class);
$this->commentsManager->expects($this->once())
@@ -101,7 +101,7 @@ class EntityCollectionTest extends \Test\TestCase {
$this->collection->getChild('55');
}
- public function testGetChildren() {
+ public function testGetChildren(): void {
$this->commentsManager->expects($this->once())
->method('getForObject')
->with('files', '19')
@@ -117,7 +117,7 @@ class EntityCollectionTest extends \Test\TestCase {
$this->assertTrue($result[0] instanceof \OCA\DAV\Comments\CommentNode);
}
- public function testFindChildren() {
+ public function testFindChildren(): void {
$dt = new \DateTime('2016-01-10 18:48:00');
$this->commentsManager->expects($this->once())
->method('getForObject')
@@ -134,11 +134,11 @@ class EntityCollectionTest extends \Test\TestCase {
$this->assertTrue($result[0] instanceof \OCA\DAV\Comments\CommentNode);
}
- public function testChildExistsTrue() {
+ public function testChildExistsTrue(): void {
$this->assertTrue($this->collection->childExists('44'));
}
- public function testChildExistsFalse() {
+ public function testChildExistsFalse(): void {
$this->commentsManager->expects($this->once())
->method('get')
->with('44')