aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Node/FileTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Files/Node/FileTest.php')
-rw-r--r--tests/lib/Files/Node/FileTest.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/lib/Files/Node/FileTest.php b/tests/lib/Files/Node/FileTest.php
index 35c2443aeff..a67c9433663 100644
--- a/tests/lib/Files/Node/FileTest.php
+++ b/tests/lib/Files/Node/FileTest.php
@@ -35,7 +35,7 @@ class FileTest extends NodeTest {
return 'unlink';
}
- public function testGetContent() {
+ public function testGetContent(): void {
/** @var \OC\Files\Node\Root|\PHPUnit\Framework\MockObject\MockObject $root */
$root = $this->getMockBuilder('\OC\Files\Node\Root')
->setConstructorArgs([$this->manager, $this->view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory])
@@ -63,7 +63,7 @@ class FileTest extends NodeTest {
}
- public function testGetContentNotPermitted() {
+ public function testGetContentNotPermitted(): void {
$this->expectException(\OCP\Files\NotPermittedException::class);
/** @var \OC\Files\Node\Root|\PHPUnit\Framework\MockObject\MockObject $root */
@@ -84,7 +84,7 @@ class FileTest extends NodeTest {
$node->getContent();
}
- public function testPutContent() {
+ public function testPutContent(): void {
/** @var \OC\Files\Node\Root|\PHPUnit\Framework\MockObject\MockObject $root */
$root = $this->getMockBuilder('\OC\Files\Node\Root')
->setConstructorArgs([$this->manager, $this->view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory])
@@ -109,7 +109,7 @@ class FileTest extends NodeTest {
}
- public function testPutContentNotPermitted() {
+ public function testPutContentNotPermitted(): void {
$this->expectException(\OCP\Files\NotPermittedException::class);
/** @var \OC\Files\Node\Root|\PHPUnit\Framework\MockObject\MockObject $root */
@@ -126,7 +126,7 @@ class FileTest extends NodeTest {
$node->putContent('bar');
}
- public function testGetMimeType() {
+ public function testGetMimeType(): void {
/** @var \OC\Files\Node\Root|\PHPUnit\Framework\MockObject\MockObject $root */
$root = $this->getMockBuilder('\OC\Files\Node\Root')
->setConstructorArgs([$this->manager, $this->view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory])
@@ -141,7 +141,7 @@ class FileTest extends NodeTest {
$this->assertEquals('text/plain', $node->getMimeType());
}
- public function testFOpenRead() {
+ public function testFOpenRead(): void {
$stream = fopen('php://memory', 'w+');
fwrite($stream, 'bar');
rewind($stream);
@@ -180,7 +180,7 @@ class FileTest extends NodeTest {
$this->assertEquals('bar', fread($fh, 3));
}
- public function testFOpenWrite() {
+ public function testFOpenWrite(): void {
$stream = fopen('php://memory', 'w+');
$root = new \OC\Files\Node\Root(
@@ -221,7 +221,7 @@ class FileTest extends NodeTest {
}
- public function testFOpenReadNotPermitted() {
+ public function testFOpenReadNotPermitted(): void {
$this->expectException(\OCP\Files\NotPermittedException::class);
$root = new \OC\Files\Node\Root(
@@ -248,7 +248,7 @@ class FileTest extends NodeTest {
}
- public function testFOpenReadWriteNoReadPermissions() {
+ public function testFOpenReadWriteNoReadPermissions(): void {
$this->expectException(\OCP\Files\NotPermittedException::class);
$root = new \OC\Files\Node\Root(
@@ -275,7 +275,7 @@ class FileTest extends NodeTest {
}
- public function testFOpenReadWriteNoWritePermissions() {
+ public function testFOpenReadWriteNoWritePermissions(): void {
$this->expectException(\OCP\Files\NotPermittedException::class);
$root = new \OC\Files\Node\Root(