summaryrefslogtreecommitdiffstats
path: root/tests/lib/Lockdown
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Lockdown')
-rw-r--r--tests/lib/Lockdown/Filesystem/NoFSTest.php6
-rw-r--r--tests/lib/Lockdown/Filesystem/NullCacheTest.php2
-rw-r--r--tests/lib/Lockdown/Filesystem/NullStorageTest.php2
-rw-r--r--tests/lib/Lockdown/LockdownManagerTest.php2
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/Lockdown/Filesystem/NoFSTest.php b/tests/lib/Lockdown/Filesystem/NoFSTest.php
index a0900ad769d..eaaa7b12955 100644
--- a/tests/lib/Lockdown/Filesystem/NoFSTest.php
+++ b/tests/lib/Lockdown/Filesystem/NoFSTest.php
@@ -34,16 +34,16 @@ use Test\Traits\UserTrait;
class NoFSTest extends \Test\TestCase {
use UserTrait;
- public function tearDown() {
+ public function tearDown(): void {
$token = new DefaultToken();
$token->setScope([
'filesystem' => true
]);
\OC::$server->getLockdownManager()->setToken($token);
- return parent::tearDown();
+ parent::tearDown();
}
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$token = new DefaultToken();
$token->setScope([
diff --git a/tests/lib/Lockdown/Filesystem/NullCacheTest.php b/tests/lib/Lockdown/Filesystem/NullCacheTest.php
index 7773241fca1..f9c6fb3ff6c 100644
--- a/tests/lib/Lockdown/Filesystem/NullCacheTest.php
+++ b/tests/lib/Lockdown/Filesystem/NullCacheTest.php
@@ -34,7 +34,7 @@ class NulLCacheTest extends \Test\TestCase {
/** @var NullCache */
private $cache;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->cache = new NullCache();
diff --git a/tests/lib/Lockdown/Filesystem/NullStorageTest.php b/tests/lib/Lockdown/Filesystem/NullStorageTest.php
index a8e2d8d6ba4..97a5b775d06 100644
--- a/tests/lib/Lockdown/Filesystem/NullStorageTest.php
+++ b/tests/lib/Lockdown/Filesystem/NullStorageTest.php
@@ -36,7 +36,7 @@ class NullStorageTest extends TestCase {
/** @var NullStorage */
private $storage;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->storage = new NullStorage([]);
diff --git a/tests/lib/Lockdown/LockdownManagerTest.php b/tests/lib/Lockdown/LockdownManagerTest.php
index 1d206dbf409..2f1c794d4d7 100644
--- a/tests/lib/Lockdown/LockdownManagerTest.php
+++ b/tests/lib/Lockdown/LockdownManagerTest.php
@@ -29,7 +29,7 @@ use Test\TestCase;
class LockdownManagerTest extends TestCase {
private $sessionCallback;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->sessionCallback = function() {