aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Cache
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Files/Cache')
-rw-r--r--tests/lib/Files/Cache/CacheTest.php4
-rw-r--r--tests/lib/Files/Cache/HomeCacheTest.php2
-rw-r--r--tests/lib/Files/Cache/MoveFromCacheTraitTest.php2
-rw-r--r--tests/lib/Files/Cache/PropagatorTest.php2
-rw-r--r--tests/lib/Files/Cache/QuerySearchHelperTest.php4
-rw-r--r--tests/lib/Files/Cache/ScannerTest.php4
-rw-r--r--tests/lib/Files/Cache/UpdaterLegacyTest.php4
-rw-r--r--tests/lib/Files/Cache/UpdaterTest.php4
-rw-r--r--tests/lib/Files/Cache/WatcherTest.php4
-rw-r--r--tests/lib/Files/Cache/Wrapper/CacheJailTest.php2
-rw-r--r--tests/lib/Files/Cache/Wrapper/CachePermissionsMaskTest.php2
11 files changed, 17 insertions, 17 deletions
diff --git a/tests/lib/Files/Cache/CacheTest.php b/tests/lib/Files/Cache/CacheTest.php
index ccdfbbd065b..b2816c03094 100644
--- a/tests/lib/Files/Cache/CacheTest.php
+++ b/tests/lib/Files/Cache/CacheTest.php
@@ -777,7 +777,7 @@ class CacheTest extends \Test\TestCase {
$this->cache->remove("sub");
}
- protected function tearDown() {
+ protected function tearDown(): void {
if ($this->cache) {
$this->cache->clear();
}
@@ -785,7 +785,7 @@ class CacheTest extends \Test\TestCase {
parent::tearDown();
}
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->storage = new \OC\Files\Storage\Temporary(array());
diff --git a/tests/lib/Files/Cache/HomeCacheTest.php b/tests/lib/Files/Cache/HomeCacheTest.php
index a144b8cabb8..51fc2e5bc9b 100644
--- a/tests/lib/Files/Cache/HomeCacheTest.php
+++ b/tests/lib/Files/Cache/HomeCacheTest.php
@@ -66,7 +66,7 @@ class HomeCacheTest extends \Test\TestCase {
*/
private $user;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->user = new DummyUser('foo', \OC::$server->getTempManager()->getTemporaryFolder());
diff --git a/tests/lib/Files/Cache/MoveFromCacheTraitTest.php b/tests/lib/Files/Cache/MoveFromCacheTraitTest.php
index 3d4a55c0722..f93b95b5fe7 100644
--- a/tests/lib/Files/Cache/MoveFromCacheTraitTest.php
+++ b/tests/lib/Files/Cache/MoveFromCacheTraitTest.php
@@ -20,7 +20,7 @@ class FallBackCrossCacheMoveCache extends \OC\Files\Cache\Cache {
* @group DB
*/
class MoveFromCacheTraitTest extends CacheTest {
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->storage = new \OC\Files\Storage\Temporary(array());
diff --git a/tests/lib/Files/Cache/PropagatorTest.php b/tests/lib/Files/Cache/PropagatorTest.php
index 402b29c8c3e..bbf36329461 100644
--- a/tests/lib/Files/Cache/PropagatorTest.php
+++ b/tests/lib/Files/Cache/PropagatorTest.php
@@ -20,7 +20,7 @@ class PropagatorTest extends TestCase {
/** @var IStorage */
private $storage;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->storage = new Temporary();
$this->storage->mkdir('foo/bar');
diff --git a/tests/lib/Files/Cache/QuerySearchHelperTest.php b/tests/lib/Files/Cache/QuerySearchHelperTest.php
index addeac71350..5a9d3022099 100644
--- a/tests/lib/Files/Cache/QuerySearchHelperTest.php
+++ b/tests/lib/Files/Cache/QuerySearchHelperTest.php
@@ -48,7 +48,7 @@ class QuerySearchHelperTest extends TestCase {
/** @var integer */
private $numericStorageId;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->builder = \OC::$server->getDatabaseConnection()->getQueryBuilder();
$this->mimetypeLoader = $this->createMock(IMimeTypeLoader::class);
@@ -83,7 +83,7 @@ class QuerySearchHelperTest extends TestCase {
->where($this->builder->expr()->eq('storage', new Literal($this->numericStorageId)));
}
- public function tearDown() {
+ public function tearDown(): void {
parent::tearDown();
$builder = \OC::$server->getDatabaseConnection()->getQueryBuilder();
diff --git a/tests/lib/Files/Cache/ScannerTest.php b/tests/lib/Files/Cache/ScannerTest.php
index 0f5335f4416..1c0a8b0e0e9 100644
--- a/tests/lib/Files/Cache/ScannerTest.php
+++ b/tests/lib/Files/Cache/ScannerTest.php
@@ -33,7 +33,7 @@ class ScannerTest extends \Test\TestCase {
*/
private $cache;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->storage = new \OC\Files\Storage\Temporary(array());
@@ -41,7 +41,7 @@ class ScannerTest extends \Test\TestCase {
$this->cache = new \OC\Files\Cache\Cache($this->storage);
}
- protected function tearDown() {
+ protected function tearDown(): void {
if ($this->cache) {
$this->cache->clear();
}
diff --git a/tests/lib/Files/Cache/UpdaterLegacyTest.php b/tests/lib/Files/Cache/UpdaterLegacyTest.php
index a0cc1c5d89c..e20cfe2ac12 100644
--- a/tests/lib/Files/Cache/UpdaterLegacyTest.php
+++ b/tests/lib/Files/Cache/UpdaterLegacyTest.php
@@ -37,7 +37,7 @@ class UpdaterLegacyTest extends \Test\TestCase {
private static $user;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->storage = new \OC\Files\Storage\Temporary(array());
@@ -68,7 +68,7 @@ class UpdaterLegacyTest extends \Test\TestCase {
\OC_Hook::clear('OC_Filesystem');
}
- protected function tearDown() {
+ protected function tearDown(): void {
if ($this->cache) {
$this->cache->clear();
}
diff --git a/tests/lib/Files/Cache/UpdaterTest.php b/tests/lib/Files/Cache/UpdaterTest.php
index 54fb3f3fc97..8dc5893007b 100644
--- a/tests/lib/Files/Cache/UpdaterTest.php
+++ b/tests/lib/Files/Cache/UpdaterTest.php
@@ -40,7 +40,7 @@ class UpdaterTest extends \Test\TestCase {
*/
protected $updater;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->loginAsUser();
@@ -50,7 +50,7 @@ class UpdaterTest extends \Test\TestCase {
$this->cache = $this->storage->getCache();
}
- protected function tearDown() {
+ protected function tearDown(): void {
Filesystem::clearMounts();
$this->logout();
diff --git a/tests/lib/Files/Cache/WatcherTest.php b/tests/lib/Files/Cache/WatcherTest.php
index d4aa9ac875e..18f0ebe98a9 100644
--- a/tests/lib/Files/Cache/WatcherTest.php
+++ b/tests/lib/Files/Cache/WatcherTest.php
@@ -22,13 +22,13 @@ class WatcherTest extends \Test\TestCase {
*/
private $storages = array();
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->loginAsUser();
}
- protected function tearDown() {
+ protected function tearDown(): void {
foreach ($this->storages as $storage) {
$cache = $storage->getCache();
$ids = $cache->getAll();
diff --git a/tests/lib/Files/Cache/Wrapper/CacheJailTest.php b/tests/lib/Files/Cache/Wrapper/CacheJailTest.php
index 365049c1cc6..744e132d2cc 100644
--- a/tests/lib/Files/Cache/Wrapper/CacheJailTest.php
+++ b/tests/lib/Files/Cache/Wrapper/CacheJailTest.php
@@ -24,7 +24,7 @@ class CacheJailTest extends CacheTest {
*/
protected $sourceCache;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->storage->mkdir('foo');
$this->sourceCache = $this->cache;
diff --git a/tests/lib/Files/Cache/Wrapper/CachePermissionsMaskTest.php b/tests/lib/Files/Cache/Wrapper/CachePermissionsMaskTest.php
index c12b35867ff..0e2460f74e2 100644
--- a/tests/lib/Files/Cache/Wrapper/CachePermissionsMaskTest.php
+++ b/tests/lib/Files/Cache/Wrapper/CachePermissionsMaskTest.php
@@ -24,7 +24,7 @@ class CachePermissionsMaskTest extends CacheTest {
*/
protected $sourceCache;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->storage->mkdir('foo');
$this->sourceCache = $this->cache;