aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Test
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-03-24 09:07:54 +0100
committerVincent Petry <vincent@nextcloud.com>2021-03-24 09:07:54 +0100
commit8b92776be48313fd9d949c57b9ddb7c8beea39c0 (patch)
treec362ff879b58930ba02b97b998596eaed92162c1 /tests/Test
parent95e03fba2d933672ec6ead6503d68a48bf264073 (diff)
downloadnextcloud-server-8b92776be48313fd9d949c57b9ddb7c8beea39c0.tar.gz
nextcloud-server-8b92776be48313fd9d949c57b9ddb7c8beea39c0.zip
Bring back forgotten tests
Remove "ocs-provider" test folder reference as it doesn't exist any more. Added back "Test" test subdir and fixed the tests inside. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'tests/Test')
-rw-r--r--tests/Test/Repair/Owncloud/CleanPreviewsBackgroundJobTest.php2
-rw-r--r--tests/Test/Repair/Owncloud/CleanPreviewsTest.php2
-rw-r--r--tests/Test/Repair/Owncloud/InstallCoreBundleTest.php2
-rw-r--r--tests/Test/Repair/Owncloud/UpdateLanguageCodesTest.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/Test/Repair/Owncloud/CleanPreviewsBackgroundJobTest.php b/tests/Test/Repair/Owncloud/CleanPreviewsBackgroundJobTest.php
index 267f01ca43f..a487e021187 100644
--- a/tests/Test/Repair/Owncloud/CleanPreviewsBackgroundJobTest.php
+++ b/tests/Test/Repair/Owncloud/CleanPreviewsBackgroundJobTest.php
@@ -52,7 +52,7 @@ class CleanPreviewsBackgroundJobTest extends TestCase {
/** @var IUserManager|\PHPUnit_Framework_MockObject_MockObject */
private $userManager;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->rootFolder = $this->createMock(IRootFolder::class);
diff --git a/tests/Test/Repair/Owncloud/CleanPreviewsTest.php b/tests/Test/Repair/Owncloud/CleanPreviewsTest.php
index 131b80517fb..abd166057be 100644
--- a/tests/Test/Repair/Owncloud/CleanPreviewsTest.php
+++ b/tests/Test/Repair/Owncloud/CleanPreviewsTest.php
@@ -46,7 +46,7 @@ class CleanPreviewsTest extends TestCase {
/** @var CleanPreviews */
private $repair;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->jobList = $this->createMock(IJobList::class);
diff --git a/tests/Test/Repair/Owncloud/InstallCoreBundleTest.php b/tests/Test/Repair/Owncloud/InstallCoreBundleTest.php
index 37163aee961..61be5006c41 100644
--- a/tests/Test/Repair/Owncloud/InstallCoreBundleTest.php
+++ b/tests/Test/Repair/Owncloud/InstallCoreBundleTest.php
@@ -41,7 +41,7 @@ class InstallCoreBundleTest extends TestCase {
/** @var InstallCoreBundle */
private $installCoreBundle;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->bundleFetcher = $this->createMock(BundleFetcher::class);
$this->config = $this->createMock(IConfig::class);
diff --git a/tests/Test/Repair/Owncloud/UpdateLanguageCodesTest.php b/tests/Test/Repair/Owncloud/UpdateLanguageCodesTest.php
index 171b7701194..fbf59fec81c 100644
--- a/tests/Test/Repair/Owncloud/UpdateLanguageCodesTest.php
+++ b/tests/Test/Repair/Owncloud/UpdateLanguageCodesTest.php
@@ -43,7 +43,7 @@ class UpdateLanguageCodesTest extends TestCase {
/** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */
private $config;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->connection = \OC::$server->getDatabaseConnection();