summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/tests/Command/CleanupTest.php2
-rw-r--r--apps/files_versions/tests/Controller/PreviewControllerTest.php2
-rw-r--r--apps/files_versions/tests/VersioningTest.php8
3 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_versions/tests/Command/CleanupTest.php b/apps/files_versions/tests/Command/CleanupTest.php
index 48720d2fbcc..ace8e842e7b 100644
--- a/apps/files_versions/tests/Command/CleanupTest.php
+++ b/apps/files_versions/tests/Command/CleanupTest.php
@@ -48,7 +48,7 @@ class CleanupTest extends TestCase {
/** @var \PHPUnit_Framework_MockObject_MockObject | IRootFolder */
protected $rootFolder;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->rootFolder = $this->getMockBuilder('OCP\Files\IRootFolder')
diff --git a/apps/files_versions/tests/Controller/PreviewControllerTest.php b/apps/files_versions/tests/Controller/PreviewControllerTest.php
index 7c248b36349..e771b82a42d 100644
--- a/apps/files_versions/tests/Controller/PreviewControllerTest.php
+++ b/apps/files_versions/tests/Controller/PreviewControllerTest.php
@@ -64,7 +64,7 @@ class PreviewControllerTest extends TestCase {
/** @var IVersionManager|\PHPUnit_Framework_MockObject_MockObject */
private $versionManager;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->rootFolder = $this->createMock(IRootFolder::class);
diff --git a/apps/files_versions/tests/VersioningTest.php b/apps/files_versions/tests/VersioningTest.php
index b3023dbef65..d878ea9c3da 100644
--- a/apps/files_versions/tests/VersioningTest.php
+++ b/apps/files_versions/tests/VersioningTest.php
@@ -56,7 +56,7 @@ class VersioningTest extends \Test\TestCase {
*/
private $rootView;
- public static function setUpBeforeClass() {
+ public static function setUpBeforeClass(): void {
parent::setUpBeforeClass();
$application = new \OCA\Files_Sharing\AppInfo\Application();
@@ -67,7 +67,7 @@ class VersioningTest extends \Test\TestCase {
self::loginHelper(self::TEST_VERSIONS_USER, true);
}
- public static function tearDownAfterClass() {
+ public static function tearDownAfterClass(): void {
// cleanup test user
$user = \OC::$server->getUserManager()->get(self::TEST_VERSIONS_USER);
if ($user !== null) { $user->delete(); }
@@ -77,7 +77,7 @@ class VersioningTest extends \Test\TestCase {
parent::tearDownAfterClass();
}
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$config = \OC::$server->getConfig();
@@ -105,7 +105,7 @@ class VersioningTest extends \Test\TestCase {
}
}
- protected function tearDown() {
+ protected function tearDown(): void {
$this->restoreService('AllConfig');
if ($this->rootView) {