aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Core/Command/Config/App/DeleteConfigTest.php1
-rw-r--r--tests/Core/Command/Config/App/GetConfigTest.php1
-rw-r--r--tests/Core/Command/Config/App/SetConfigTest.php1
-rw-r--r--tests/Core/Command/Config/ImportTest.php1
-rw-r--r--tests/Core/Command/Config/ListConfigsTest.php1
-rw-r--r--tests/Core/Command/Config/System/DeleteConfigTest.php1
-rw-r--r--tests/Core/Command/Config/System/GetConfigTest.php1
-rw-r--r--tests/Core/Command/Config/System/SetConfigTest.php1
-rw-r--r--tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php1
-rw-r--r--tests/Core/Command/Encryption/DecryptAllTest.php1
-rw-r--r--tests/Core/Command/Encryption/DisableTest.php1
-rw-r--r--tests/Core/Command/Encryption/EnableTest.php1
-rw-r--r--tests/Core/Command/Encryption/EncryptAllTest.php1
-rw-r--r--tests/Core/Command/Encryption/SetDefaultModuleTest.php1
-rw-r--r--tests/Core/Command/Log/FileTest.php1
-rw-r--r--tests/Core/Command/Log/ManageTest.php1
-rw-r--r--tests/Core/Command/User/DeleteTest.php1
-rw-r--r--tests/Core/Command/User/DisableTest.php1
-rw-r--r--tests/Core/Command/User/EnableTest.php1
-rw-r--r--tests/Core/Command/User/LastSeenTest.php1
-rw-r--r--tests/Core/Command/User/SettingTest.php1
-rw-r--r--tests/lib/Accounts/AccountsManagerTest.php1
-rw-r--r--tests/lib/Accounts/HooksTest.php1
-rw-r--r--tests/lib/AppConfigTest.php1
-rw-r--r--tests/lib/AppFramework/Db/EntityTest.php1
-rw-r--r--tests/lib/AppFramework/Db/MapperTestUtility.php1
-rw-r--r--tests/lib/AppFramework/DependencyInjection/DIContainerTest.php1
-rw-r--r--tests/lib/AppFramework/Http/DataResponseTest.php1
-rw-r--r--tests/lib/AppFramework/Http/DownloadResponseTest.php1
-rw-r--r--tests/lib/AppFramework/Http/JSONResponseTest.php1
-rw-r--r--tests/lib/AppFramework/Http/OCSResponseTest.php1
-rw-r--r--tests/lib/AppFramework/Http/ResponseTest.php1
-rw-r--r--tests/lib/AppFramework/Http/StreamResponseTest.php1
-rw-r--r--tests/lib/AppFramework/OCS/BaseResponseTest.php1
-rw-r--r--tests/lib/AppFramework/Utility/ControllerMethodReflectorTest.php1
-rw-r--r--tests/lib/Archive/TARTest.php1
-rw-r--r--tests/lib/Archive/TestBase.php1
-rw-r--r--tests/lib/Archive/ZIPTest.php1
-rw-r--r--tests/lib/BackgroundJob/DummyJobList.php1
-rw-r--r--tests/lib/BackgroundJob/TestJob.php1
-rw-r--r--tests/lib/Cache/FileCacheTest.php1
-rw-r--r--tests/lib/Collaboration/Collaborators/GroupPluginTest.php1
-rw-r--r--tests/lib/Collaboration/Collaborators/LookupPluginTest.php1
-rw-r--r--tests/lib/Collaboration/Collaborators/MailPluginTest.php1
-rw-r--r--tests/lib/Collaboration/Collaborators/RemotePluginTest.php1
-rw-r--r--tests/lib/Collaboration/Collaborators/SearchResultTest.php1
-rw-r--r--tests/lib/Collaboration/Collaborators/SearchTest.php1
-rw-r--r--tests/lib/Comments/FakeManager.php1
-rw-r--r--tests/lib/Encryption/DecryptAllTest.php1
-rw-r--r--tests/lib/Encryption/EncryptionWrapperTest.php1
-rw-r--r--tests/lib/Encryption/UpdateTest.php1
-rw-r--r--tests/lib/Files/Cache/CacheTest.php1
-rw-r--r--tests/lib/Files/Mount/MountTest.php1
-rw-r--r--tests/lib/Files/ObjectStore/FailDeleteObjectStore.php1
-rw-r--r--tests/lib/Files/ObjectStore/MapperTest.php1
-rw-r--r--tests/lib/GlobalScale/ConfigTest.php1
-rw-r--r--tests/lib/HelperStorageTest.php1
-rw-r--r--tests/lib/Hooks/ForwardingEmitterTest.php1
-rw-r--r--tests/lib/InfoXmlTest.php1
-rw-r--r--tests/lib/InstallerTest.php1
-rw-r--r--tests/lib/L10N/L10nTest.php1
-rw-r--r--tests/lib/Log/LogFactoryTest.php1
-rw-r--r--tests/lib/Mail/MailerTest.php1
-rw-r--r--tests/lib/Notification/ActionTest.php1
-rw-r--r--tests/lib/Notification/DummyApp.php1
-rw-r--r--tests/lib/Notification/DummyNotifier.php1
-rw-r--r--tests/lib/Notification/NotificationTest.php1
-rw-r--r--tests/lib/OCS/DiscoveryServiceTest.php1
-rw-r--r--tests/lib/PublicNamespace/UtilTest.php1
-rw-r--r--tests/lib/Remote/InstanceTest.php1
-rw-r--r--tests/lib/Repair/CleanTagsTest.php1
-rw-r--r--tests/lib/Repair/ClearFrontendCachesTest.php1
-rw-r--r--tests/lib/Repair/RepairInvalidSharesTest.php1
-rw-r--r--tests/lib/Repair/RepairSqliteAutoincrementTest.php1
-rw-r--r--tests/lib/RichObjectStrings/DefinitionsTest.php1
-rw-r--r--tests/lib/RichObjectStrings/ValidatorTest.php1
-rw-r--r--tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php1
-rw-r--r--tests/lib/ServerTest.php1
-rw-r--r--tests/lib/Share/ShareTest.php1
-rw-r--r--tests/lib/TagsTest.php1
-rw-r--r--tests/lib/Traits/ClientServiceTrait.php1
-rw-r--r--tests/lib/UrlGeneratorTest.php1
-rw-r--r--tests/lib/User/ManagerTest.php1
83 files changed, 15 insertions, 68 deletions
diff --git a/tests/Core/Command/Config/App/DeleteConfigTest.php b/tests/Core/Command/Config/App/DeleteConfigTest.php
index 251de227d67..442b9c5a8ef 100644
--- a/tests/Core/Command/Config/App/DeleteConfigTest.php
+++ b/tests/Core/Command/Config/App/DeleteConfigTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config\App;
-
use OC\Core\Command\Config\App\DeleteConfig;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Config/App/GetConfigTest.php b/tests/Core/Command/Config/App/GetConfigTest.php
index 7ecb09b8f82..b18bc8de1d0 100644
--- a/tests/Core/Command/Config/App/GetConfigTest.php
+++ b/tests/Core/Command/Config/App/GetConfigTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config\App;
-
use OC\Core\Command\Config\App\GetConfig;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Config/App/SetConfigTest.php b/tests/Core/Command/Config/App/SetConfigTest.php
index 988e965d317..3077f74b369 100644
--- a/tests/Core/Command/Config/App/SetConfigTest.php
+++ b/tests/Core/Command/Config/App/SetConfigTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config\App;
-
use OC\Core\Command\Config\App\SetConfig;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Config/ImportTest.php b/tests/Core/Command/Config/ImportTest.php
index fa1ed151678..2c0a6e3d8fd 100644
--- a/tests/Core/Command/Config/ImportTest.php
+++ b/tests/Core/Command/Config/ImportTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config;
-
use OC\Core\Command\Config\Import;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Config/ListConfigsTest.php b/tests/Core/Command/Config/ListConfigsTest.php
index 203feaacbf1..ac0155f9b5f 100644
--- a/tests/Core/Command/Config/ListConfigsTest.php
+++ b/tests/Core/Command/Config/ListConfigsTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config;
-
use OC\Core\Command\Config\ListConfigs;
use OC\SystemConfig;
use OCP\IAppConfig;
diff --git a/tests/Core/Command/Config/System/DeleteConfigTest.php b/tests/Core/Command/Config/System/DeleteConfigTest.php
index 21ef3e33981..ee27fa587bc 100644
--- a/tests/Core/Command/Config/System/DeleteConfigTest.php
+++ b/tests/Core/Command/Config/System/DeleteConfigTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config\System;
-
use OC\Core\Command\Config\System\DeleteConfig;
use OC\SystemConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Config/System/GetConfigTest.php b/tests/Core/Command/Config/System/GetConfigTest.php
index 1d8975f7f7f..ab366b3e1f5 100644
--- a/tests/Core/Command/Config/System/GetConfigTest.php
+++ b/tests/Core/Command/Config/System/GetConfigTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config\System;
-
use OC\Core\Command\Config\System\GetConfig;
use OC\SystemConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Config/System/SetConfigTest.php b/tests/Core/Command/Config/System/SetConfigTest.php
index 1ed7cf2758f..e359e846aa7 100644
--- a/tests/Core/Command/Config/System/SetConfigTest.php
+++ b/tests/Core/Command/Config/System/SetConfigTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Config\System;
-
use OC\Core\Command\Config\System\SetConfig;
use OC\SystemConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php b/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php
index d17050e7245..4f15b2a50b1 100644
--- a/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php
+++ b/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Encryption;
-
use OC\Core\Command\Encryption\ChangeKeyStorageRoot;
use OC\Encryption\Util;
use OC\Files\View;
diff --git a/tests/Core/Command/Encryption/DecryptAllTest.php b/tests/Core/Command/Encryption/DecryptAllTest.php
index acdaff4bbab..4cae5bc0ad2 100644
--- a/tests/Core/Command/Encryption/DecryptAllTest.php
+++ b/tests/Core/Command/Encryption/DecryptAllTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Encryption;
-
use OC\Core\Command\Encryption\DecryptAll;
use OCP\App\IAppManager;
use OCP\Encryption\IManager;
diff --git a/tests/Core/Command/Encryption/DisableTest.php b/tests/Core/Command/Encryption/DisableTest.php
index f9035a84788..4d088073380 100644
--- a/tests/Core/Command/Encryption/DisableTest.php
+++ b/tests/Core/Command/Encryption/DisableTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Encryption;
-
use OC\Core\Command\Encryption\Disable;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Encryption/EnableTest.php b/tests/Core/Command/Encryption/EnableTest.php
index 5c8fc826af1..f76638c0ecf 100644
--- a/tests/Core/Command/Encryption/EnableTest.php
+++ b/tests/Core/Command/Encryption/EnableTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Encryption;
-
use OC\Core\Command\Encryption\Enable;
use OCP\Encryption\IManager;
use OCP\IConfig;
diff --git a/tests/Core/Command/Encryption/EncryptAllTest.php b/tests/Core/Command/Encryption/EncryptAllTest.php
index 778d51fd8b8..4a0d40ea5b3 100644
--- a/tests/Core/Command/Encryption/EncryptAllTest.php
+++ b/tests/Core/Command/Encryption/EncryptAllTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Encryption;
-
use OC\Core\Command\Encryption\EncryptAll;
use OCP\App\IAppManager;
use OCP\Encryption\IEncryptionModule;
diff --git a/tests/Core/Command/Encryption/SetDefaultModuleTest.php b/tests/Core/Command/Encryption/SetDefaultModuleTest.php
index 0776ef42b48..f2f1d1cfc67 100644
--- a/tests/Core/Command/Encryption/SetDefaultModuleTest.php
+++ b/tests/Core/Command/Encryption/SetDefaultModuleTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Encryption;
-
use OC\Core\Command\Encryption\SetDefaultModule;
use OCP\Encryption\IManager;
use OCP\IConfig;
diff --git a/tests/Core/Command/Log/FileTest.php b/tests/Core/Command/Log/FileTest.php
index c1d005e0c56..58507227780 100644
--- a/tests/Core/Command/Log/FileTest.php
+++ b/tests/Core/Command/Log/FileTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Log;
-
use OC\Core\Command\Log\File;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/Log/ManageTest.php b/tests/Core/Command/Log/ManageTest.php
index cae6293abd1..4425a9e0054 100644
--- a/tests/Core/Command/Log/ManageTest.php
+++ b/tests/Core/Command/Log/ManageTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\Log;
-
use OC\Core\Command\Log\Manage;
use OCP\IConfig;
use Symfony\Component\Console\Input\InputInterface;
diff --git a/tests/Core/Command/User/DeleteTest.php b/tests/Core/Command/User/DeleteTest.php
index 9dc920894d7..ec65984bef8 100644
--- a/tests/Core/Command/User/DeleteTest.php
+++ b/tests/Core/Command/User/DeleteTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\User;
-
use OC\Core\Command\User\Delete;
use OCP\IUser;
use OCP\IUserManager;
diff --git a/tests/Core/Command/User/DisableTest.php b/tests/Core/Command/User/DisableTest.php
index 5456118f67c..5fb4633dc00 100644
--- a/tests/Core/Command/User/DisableTest.php
+++ b/tests/Core/Command/User/DisableTest.php
@@ -23,7 +23,6 @@
namespace Tests\Core\Command\User;
-
use OC\Core\Command\User\Disable;
use OCP\IUser;
use OCP\IUserManager;
diff --git a/tests/Core/Command/User/EnableTest.php b/tests/Core/Command/User/EnableTest.php
index 4a723ca1167..4babe0d91c1 100644
--- a/tests/Core/Command/User/EnableTest.php
+++ b/tests/Core/Command/User/EnableTest.php
@@ -23,7 +23,6 @@
namespace Tests\Core\Command\User;
-
use OC\Core\Command\User\Enable;
use OCP\IUser;
use OCP\IUserManager;
diff --git a/tests/Core/Command/User/LastSeenTest.php b/tests/Core/Command/User/LastSeenTest.php
index f6ee4796454..0a402a30119 100644
--- a/tests/Core/Command/User/LastSeenTest.php
+++ b/tests/Core/Command/User/LastSeenTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\User;
-
use OC\Core\Command\User\LastSeen;
use OCP\IUser;
use OCP\IUserManager;
diff --git a/tests/Core/Command/User/SettingTest.php b/tests/Core/Command/User/SettingTest.php
index 8486e7fc3ca..4aa3b5e4801 100644
--- a/tests/Core/Command/User/SettingTest.php
+++ b/tests/Core/Command/User/SettingTest.php
@@ -21,7 +21,6 @@
namespace Tests\Core\Command\User;
-
use OC\Core\Command\User\Setting;
use OCP\IConfig;
use OCP\IDBConnection;
diff --git a/tests/lib/Accounts/AccountsManagerTest.php b/tests/lib/Accounts/AccountsManagerTest.php
index 78f8503123d..5bed1ff74fb 100644
--- a/tests/lib/Accounts/AccountsManagerTest.php
+++ b/tests/lib/Accounts/AccountsManagerTest.php
@@ -21,7 +21,6 @@
namespace Test\Accounts;
-
use OC\Accounts\Account;
use OC\Accounts\AccountManager;
use OCP\Accounts\IAccountManager;
diff --git a/tests/lib/Accounts/HooksTest.php b/tests/lib/Accounts/HooksTest.php
index 0d6ce3241d6..433ecdedcf4 100644
--- a/tests/lib/Accounts/HooksTest.php
+++ b/tests/lib/Accounts/HooksTest.php
@@ -21,7 +21,6 @@
namespace Test\Accounts;
-
use OC\Accounts\AccountManager;
use OC\Accounts\Hooks;
use OCP\ILogger;
diff --git a/tests/lib/AppConfigTest.php b/tests/lib/AppConfigTest.php
index 14114e8fad7..3a4c16b3396 100644
--- a/tests/lib/AppConfigTest.php
+++ b/tests/lib/AppConfigTest.php
@@ -8,6 +8,7 @@
*/
namespace Test;
+
use OCP\IConfig;
/**
diff --git a/tests/lib/AppFramework/Db/EntityTest.php b/tests/lib/AppFramework/Db/EntityTest.php
index 8676bf74cb0..b2113789810 100644
--- a/tests/lib/AppFramework/Db/EntityTest.php
+++ b/tests/lib/AppFramework/Db/EntityTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Db;
-
use OCP\AppFramework\Db\Entity;
use PHPUnit\Framework\Constraint\IsType;
diff --git a/tests/lib/AppFramework/Db/MapperTestUtility.php b/tests/lib/AppFramework/Db/MapperTestUtility.php
index 11905a9bbbb..ebcc4a11e26 100644
--- a/tests/lib/AppFramework/Db/MapperTestUtility.php
+++ b/tests/lib/AppFramework/Db/MapperTestUtility.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Db;
-
/**
* Simple utility class for testing mappers
*/
diff --git a/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php b/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
index 95d368a448e..b8cf35dfb6e 100644
--- a/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
+++ b/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
@@ -25,7 +25,6 @@
namespace Test\AppFramework\DependencyInjection;
-
use OC\AppFramework\DependencyInjection\DIContainer;
use OC\AppFramework\Http\Request;
use OC\AppFramework\Middleware\Security\SecurityMiddleware;
diff --git a/tests/lib/AppFramework/Http/DataResponseTest.php b/tests/lib/AppFramework/Http/DataResponseTest.php
index 7af11807d87..cd7b64a1caa 100644
--- a/tests/lib/AppFramework/Http/DataResponseTest.php
+++ b/tests/lib/AppFramework/Http/DataResponseTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Http;
-
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
diff --git a/tests/lib/AppFramework/Http/DownloadResponseTest.php b/tests/lib/AppFramework/Http/DownloadResponseTest.php
index 5f816eaeb76..b3437a351f9 100644
--- a/tests/lib/AppFramework/Http/DownloadResponseTest.php
+++ b/tests/lib/AppFramework/Http/DownloadResponseTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Http;
-
use OCP\AppFramework\Http\DownloadResponse;
class ChildDownloadResponse extends DownloadResponse {
diff --git a/tests/lib/AppFramework/Http/JSONResponseTest.php b/tests/lib/AppFramework/Http/JSONResponseTest.php
index 2a0978db62a..56e6d43096d 100644
--- a/tests/lib/AppFramework/Http/JSONResponseTest.php
+++ b/tests/lib/AppFramework/Http/JSONResponseTest.php
@@ -25,7 +25,6 @@
namespace Test\AppFramework\Http;
-
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
diff --git a/tests/lib/AppFramework/Http/OCSResponseTest.php b/tests/lib/AppFramework/Http/OCSResponseTest.php
index 223248c8737..ec1b422ddd9 100644
--- a/tests/lib/AppFramework/Http/OCSResponseTest.php
+++ b/tests/lib/AppFramework/Http/OCSResponseTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Http;
-
use OCP\AppFramework\Http\OCSResponse;
class OCSResponseTest extends \Test\TestCase {
diff --git a/tests/lib/AppFramework/Http/ResponseTest.php b/tests/lib/AppFramework/Http/ResponseTest.php
index 86a909b7688..0a2dc84d411 100644
--- a/tests/lib/AppFramework/Http/ResponseTest.php
+++ b/tests/lib/AppFramework/Http/ResponseTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Http;
-
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Response;
use OCP\AppFramework\Utility\ITimeFactory;
diff --git a/tests/lib/AppFramework/Http/StreamResponseTest.php b/tests/lib/AppFramework/Http/StreamResponseTest.php
index b66d9c5ed1d..6257769d927 100644
--- a/tests/lib/AppFramework/Http/StreamResponseTest.php
+++ b/tests/lib/AppFramework/Http/StreamResponseTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Http;
-
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\IOutput;
use OCP\AppFramework\Http\StreamResponse;
diff --git a/tests/lib/AppFramework/OCS/BaseResponseTest.php b/tests/lib/AppFramework/OCS/BaseResponseTest.php
index 8a86ae13e79..18a85788af2 100644
--- a/tests/lib/AppFramework/OCS/BaseResponseTest.php
+++ b/tests/lib/AppFramework/OCS/BaseResponseTest.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace Test\AppFramework\Middleware;
-
use OC\AppFramework\OCS\BaseResponse;
class BaseResponseTest extends \Test\TestCase {
diff --git a/tests/lib/AppFramework/Utility/ControllerMethodReflectorTest.php b/tests/lib/AppFramework/Utility/ControllerMethodReflectorTest.php
index 5a3c3f2a007..5c0e8c6b223 100644
--- a/tests/lib/AppFramework/Utility/ControllerMethodReflectorTest.php
+++ b/tests/lib/AppFramework/Utility/ControllerMethodReflectorTest.php
@@ -23,7 +23,6 @@
namespace Test\AppFramework\Utility;
-
use OC\AppFramework\Utility\ControllerMethodReflector;
class BaseController {
diff --git a/tests/lib/Archive/TARTest.php b/tests/lib/Archive/TARTest.php
index 77df1c32ca4..6b16f061623 100644
--- a/tests/lib/Archive/TARTest.php
+++ b/tests/lib/Archive/TARTest.php
@@ -8,7 +8,6 @@
namespace Test\Archive;
-
use OC\Archive\TAR;
class TARTest extends TestBase {
diff --git a/tests/lib/Archive/TestBase.php b/tests/lib/Archive/TestBase.php
index 8ecedb189ce..c94767db606 100644
--- a/tests/lib/Archive/TestBase.php
+++ b/tests/lib/Archive/TestBase.php
@@ -8,7 +8,6 @@
namespace Test\Archive;
-
abstract class TestBase extends \Test\TestCase {
/**
* @var \OC\Archive\Archive
diff --git a/tests/lib/Archive/ZIPTest.php b/tests/lib/Archive/ZIPTest.php
index 573339e5a19..17a639c9f5f 100644
--- a/tests/lib/Archive/ZIPTest.php
+++ b/tests/lib/Archive/ZIPTest.php
@@ -8,7 +8,6 @@
namespace Test\Archive;
-
use OC\Archive\ZIP;
class ZIPTest extends TestBase {
diff --git a/tests/lib/BackgroundJob/DummyJobList.php b/tests/lib/BackgroundJob/DummyJobList.php
index 4b8de82b368..529e93e960f 100644
--- a/tests/lib/BackgroundJob/DummyJobList.php
+++ b/tests/lib/BackgroundJob/DummyJobList.php
@@ -7,6 +7,7 @@
*/
namespace Test\BackgroundJob;
+
use OCP\BackgroundJob\IJob;
/**
diff --git a/tests/lib/BackgroundJob/TestJob.php b/tests/lib/BackgroundJob/TestJob.php
index a5ab4454550..e15c7e86c99 100644
--- a/tests/lib/BackgroundJob/TestJob.php
+++ b/tests/lib/BackgroundJob/TestJob.php
@@ -8,7 +8,6 @@
namespace Test\BackgroundJob;
-
class TestJob extends \OC\BackgroundJob\Job {
private $testCase;
diff --git a/tests/lib/Cache/FileCacheTest.php b/tests/lib/Cache/FileCacheTest.php
index df7a72a7491..96c35ebf786 100644
--- a/tests/lib/Cache/FileCacheTest.php
+++ b/tests/lib/Cache/FileCacheTest.php
@@ -21,6 +21,7 @@
*/
namespace Test\Cache;
+
use OC\Files\Storage\Local;
/**
diff --git a/tests/lib/Collaboration/Collaborators/GroupPluginTest.php b/tests/lib/Collaboration/Collaborators/GroupPluginTest.php
index 3d81134680a..e53fb290d0e 100644
--- a/tests/lib/Collaboration/Collaborators/GroupPluginTest.php
+++ b/tests/lib/Collaboration/Collaborators/GroupPluginTest.php
@@ -23,7 +23,6 @@
namespace Test\Collaboration\Collaborators;
-
use OC\Collaboration\Collaborators\GroupPlugin;
use OC\Collaboration\Collaborators\SearchResult;
use OCP\Collaboration\Collaborators\ISearchResult;
diff --git a/tests/lib/Collaboration/Collaborators/LookupPluginTest.php b/tests/lib/Collaboration/Collaborators/LookupPluginTest.php
index 15dccf2c84c..eb26443a269 100644
--- a/tests/lib/Collaboration/Collaborators/LookupPluginTest.php
+++ b/tests/lib/Collaboration/Collaborators/LookupPluginTest.php
@@ -23,7 +23,6 @@
namespace Test\Collaboration\Collaborators;
-
use OC\Collaboration\Collaborators\LookupPlugin;
use OC\Federation\CloudId;
use OCP\Collaboration\Collaborators\ISearchResult;
diff --git a/tests/lib/Collaboration/Collaborators/MailPluginTest.php b/tests/lib/Collaboration/Collaborators/MailPluginTest.php
index 84888dc364c..934c6bc68e6 100644
--- a/tests/lib/Collaboration/Collaborators/MailPluginTest.php
+++ b/tests/lib/Collaboration/Collaborators/MailPluginTest.php
@@ -23,7 +23,6 @@
namespace Test\Collaboration\Collaborators;
-
use OC\Collaboration\Collaborators\MailPlugin;
use OC\Collaboration\Collaborators\SearchResult;
use OC\Federation\CloudIdManager;
diff --git a/tests/lib/Collaboration/Collaborators/RemotePluginTest.php b/tests/lib/Collaboration/Collaborators/RemotePluginTest.php
index 59338b74de9..30ee7092aa9 100644
--- a/tests/lib/Collaboration/Collaborators/RemotePluginTest.php
+++ b/tests/lib/Collaboration/Collaborators/RemotePluginTest.php
@@ -23,7 +23,6 @@
namespace Test\Collaboration\Collaborators;
-
use OC\Collaboration\Collaborators\RemotePlugin;
use OC\Collaboration\Collaborators\SearchResult;
use OC\Federation\CloudIdManager;
diff --git a/tests/lib/Collaboration/Collaborators/SearchResultTest.php b/tests/lib/Collaboration/Collaborators/SearchResultTest.php
index 3d09a9b632d..45ce0b4c1b8 100644
--- a/tests/lib/Collaboration/Collaborators/SearchResultTest.php
+++ b/tests/lib/Collaboration/Collaborators/SearchResultTest.php
@@ -23,7 +23,6 @@
namespace Test\Collaboration\Collaborators;
-
use OC\Collaboration\Collaborators\Search;
use OC\Collaboration\Collaborators\SearchResult;
use OCP\Collaboration\Collaborators\ISearch;
diff --git a/tests/lib/Collaboration/Collaborators/SearchTest.php b/tests/lib/Collaboration/Collaborators/SearchTest.php
index e5b5d2ef820..5a78e084da8 100644
--- a/tests/lib/Collaboration/Collaborators/SearchTest.php
+++ b/tests/lib/Collaboration/Collaborators/SearchTest.php
@@ -23,7 +23,6 @@
namespace Test\Collaboration\Collaborators;
-
use OC\Collaboration\Collaborators\Search;
use OC\Collaboration\Collaborators\SearchResult;
use OCP\Collaboration\Collaborators\ISearch;
diff --git a/tests/lib/Comments/FakeManager.php b/tests/lib/Comments/FakeManager.php
index 9078226afb5..5b74b54de50 100644
--- a/tests/lib/Comments/FakeManager.php
+++ b/tests/lib/Comments/FakeManager.php
@@ -1,6 +1,7 @@
<?php
namespace Test\Comments;
+
use OCP\Comments\IComment;
use OCP\Comments\ICommentsManager;
use OCP\IUser;
diff --git a/tests/lib/Encryption/DecryptAllTest.php b/tests/lib/Encryption/DecryptAllTest.php
index 3365b1fedca..2c8cc2a4ac9 100644
--- a/tests/lib/Encryption/DecryptAllTest.php
+++ b/tests/lib/Encryption/DecryptAllTest.php
@@ -21,7 +21,6 @@
namespace Test\Encryption;
-
use OC\Encryption\DecryptAll;
use OC\Encryption\Exceptions\DecryptionFailedException;
use OC\Encryption\Manager;
diff --git a/tests/lib/Encryption/EncryptionWrapperTest.php b/tests/lib/Encryption/EncryptionWrapperTest.php
index 93987a8bb20..3fc18817327 100644
--- a/tests/lib/Encryption/EncryptionWrapperTest.php
+++ b/tests/lib/Encryption/EncryptionWrapperTest.php
@@ -21,7 +21,6 @@
namespace Test\Encryption;
-
use OC\Encryption\EncryptionWrapper;
use OC\Encryption\Manager;
use OC\Memcache\ArrayCache;
diff --git a/tests/lib/Encryption/UpdateTest.php b/tests/lib/Encryption/UpdateTest.php
index 6328df3dc30..4509a1f5fec 100644
--- a/tests/lib/Encryption/UpdateTest.php
+++ b/tests/lib/Encryption/UpdateTest.php
@@ -21,7 +21,6 @@
namespace Test\Encryption;
-
use OC\Encryption\Update;
use OC\Files\Mount\Manager;
use OC\Files\View;
diff --git a/tests/lib/Files/Cache/CacheTest.php b/tests/lib/Files/Cache/CacheTest.php
index 40d87214aad..dff21491052 100644
--- a/tests/lib/Files/Cache/CacheTest.php
+++ b/tests/lib/Files/Cache/CacheTest.php
@@ -8,7 +8,6 @@
namespace Test\Files\Cache;
-
use Doctrine\DBAL\Platforms\MySqlPlatform;
use OC\Files\Cache\Cache;
use OC\Files\Search\SearchComparison;
diff --git a/tests/lib/Files/Mount/MountTest.php b/tests/lib/Files/Mount/MountTest.php
index 160545e784c..340e6931c1d 100644
--- a/tests/lib/Files/Mount/MountTest.php
+++ b/tests/lib/Files/Mount/MountTest.php
@@ -8,7 +8,6 @@
namespace Test\Files\Mount;
-
use OC\Files\Storage\StorageFactory;
use OC\Files\Storage\Wrapper\Wrapper;
diff --git a/tests/lib/Files/ObjectStore/FailDeleteObjectStore.php b/tests/lib/Files/ObjectStore/FailDeleteObjectStore.php
index aa3b2519ec1..214550d884d 100644
--- a/tests/lib/Files/ObjectStore/FailDeleteObjectStore.php
+++ b/tests/lib/Files/ObjectStore/FailDeleteObjectStore.php
@@ -21,7 +21,6 @@
namespace Test\Files\ObjectStore;
-
use OCP\Files\ObjectStore\IObjectStore;
class FailDeleteObjectStore implements IObjectStore {
diff --git a/tests/lib/Files/ObjectStore/MapperTest.php b/tests/lib/Files/ObjectStore/MapperTest.php
index eef308af088..50d3cd553aa 100644
--- a/tests/lib/Files/ObjectStore/MapperTest.php
+++ b/tests/lib/Files/ObjectStore/MapperTest.php
@@ -21,7 +21,6 @@
namespace Test\Files\ObjectStore;
-
use OC\Files\ObjectStore\Mapper;
use OCP\IUser;
diff --git a/tests/lib/GlobalScale/ConfigTest.php b/tests/lib/GlobalScale/ConfigTest.php
index 5aaed1ed5bd..a9474f12d77 100644
--- a/tests/lib/GlobalScale/ConfigTest.php
+++ b/tests/lib/GlobalScale/ConfigTest.php
@@ -21,7 +21,6 @@
namespace Test\GlobalScale;
-
use OC\GlobalScale\Config;
use OCP\IConfig;
use Test\TestCase;
diff --git a/tests/lib/HelperStorageTest.php b/tests/lib/HelperStorageTest.php
index 606a527f5c9..22c5658e565 100644
--- a/tests/lib/HelperStorageTest.php
+++ b/tests/lib/HelperStorageTest.php
@@ -7,6 +7,7 @@
*/
namespace Test;
+
use OC\Files\Storage\Temporary;
/**
diff --git a/tests/lib/Hooks/ForwardingEmitterTest.php b/tests/lib/Hooks/ForwardingEmitterTest.php
index 9b0a51d1bd4..0c073b95573 100644
--- a/tests/lib/Hooks/ForwardingEmitterTest.php
+++ b/tests/lib/Hooks/ForwardingEmitterTest.php
@@ -7,6 +7,7 @@
*/
namespace Test\Hooks;
+
use OC\Hooks\PublicEmitter;
class DummyForwardingEmitter extends \OC\Hooks\ForwardingEmitter {
diff --git a/tests/lib/InfoXmlTest.php b/tests/lib/InfoXmlTest.php
index 0d528dbb652..30f169eac0b 100644
--- a/tests/lib/InfoXmlTest.php
+++ b/tests/lib/InfoXmlTest.php
@@ -21,7 +21,6 @@
namespace Test;
-
/**
* Class InfoXmlTest
*
diff --git a/tests/lib/InstallerTest.php b/tests/lib/InstallerTest.php
index 7a91fcab270..5d86757020f 100644
--- a/tests/lib/InstallerTest.php
+++ b/tests/lib/InstallerTest.php
@@ -8,7 +8,6 @@
namespace Test;
-
use OC\App\AppStore\Fetcher\AppFetcher;
use OC\Archive\ZIP;
use OC\Installer;
diff --git a/tests/lib/L10N/L10nTest.php b/tests/lib/L10N/L10nTest.php
index b2e7d5ebfc9..0de09386fba 100644
--- a/tests/lib/L10N/L10nTest.php
+++ b/tests/lib/L10N/L10nTest.php
@@ -8,7 +8,6 @@
namespace Test\L10N;
-
use DateTime;
use OC\L10N\Factory;
use OC\L10N\L10N;
diff --git a/tests/lib/Log/LogFactoryTest.php b/tests/lib/Log/LogFactoryTest.php
index 4a3997dbf20..e4725a3bc1a 100644
--- a/tests/lib/Log/LogFactoryTest.php
+++ b/tests/lib/Log/LogFactoryTest.php
@@ -23,6 +23,7 @@
*/
namespace Test\Log;
+
use OC\Log\Errorlog;
use OC\Log\File;
use OC\Log\LogFactory;
diff --git a/tests/lib/Mail/MailerTest.php b/tests/lib/Mail/MailerTest.php
index 8d169d598c9..bf469e87b94 100644
--- a/tests/lib/Mail/MailerTest.php
+++ b/tests/lib/Mail/MailerTest.php
@@ -11,7 +11,6 @@
namespace Test\Mail;
-
use OC\Mail\EMailTemplate;
use OC\Mail\Mailer;
use OC\Mail\Message;
diff --git a/tests/lib/Notification/ActionTest.php b/tests/lib/Notification/ActionTest.php
index 1923f2305e1..6016760c24f 100644
--- a/tests/lib/Notification/ActionTest.php
+++ b/tests/lib/Notification/ActionTest.php
@@ -21,7 +21,6 @@
namespace Test\Notification;
-
use OC\Notification\Action;
use OCP\Notification\IAction;
use Test\TestCase;
diff --git a/tests/lib/Notification/DummyApp.php b/tests/lib/Notification/DummyApp.php
index 680fb44d009..29bae60a35b 100644
--- a/tests/lib/Notification/DummyApp.php
+++ b/tests/lib/Notification/DummyApp.php
@@ -22,7 +22,6 @@ declare(strict_types=1);
namespace Test\Notification;
-
use OCP\Notification\IApp;
use OCP\Notification\INotification;
diff --git a/tests/lib/Notification/DummyNotifier.php b/tests/lib/Notification/DummyNotifier.php
index 849fb3c275f..459a694ccf8 100644
--- a/tests/lib/Notification/DummyNotifier.php
+++ b/tests/lib/Notification/DummyNotifier.php
@@ -22,7 +22,6 @@ declare(strict_types=1);
namespace Test\Notification;
-
use OCP\Notification\AlreadyProcessedException;
use OCP\Notification\INotification;
use OCP\Notification\INotifier;
diff --git a/tests/lib/Notification/NotificationTest.php b/tests/lib/Notification/NotificationTest.php
index c70fa1ec7df..59aae09b6db 100644
--- a/tests/lib/Notification/NotificationTest.php
+++ b/tests/lib/Notification/NotificationTest.php
@@ -22,7 +22,6 @@ declare (strict_types = 1);
namespace Test\Notification;
-
use OC\Notification\Notification;
use OCP\Notification\IAction;
use OCP\Notification\INotification;
diff --git a/tests/lib/OCS/DiscoveryServiceTest.php b/tests/lib/OCS/DiscoveryServiceTest.php
index 710d683841f..4b31de3f0a3 100644
--- a/tests/lib/OCS/DiscoveryServiceTest.php
+++ b/tests/lib/OCS/DiscoveryServiceTest.php
@@ -21,7 +21,6 @@
namespace Test\OCS;
-
use OC\OCS\DiscoveryService;
use OCP\Http\Client\IClientService;
use OCP\ICacheFactory;
diff --git a/tests/lib/PublicNamespace/UtilTest.php b/tests/lib/PublicNamespace/UtilTest.php
index a69d1069b9d..e4e830468f2 100644
--- a/tests/lib/PublicNamespace/UtilTest.php
+++ b/tests/lib/PublicNamespace/UtilTest.php
@@ -21,7 +21,6 @@
namespace Test\PublicNamespace;
-
class UtilTest extends \Test\TestCase {
/**
* @dataProvider channelProvider
diff --git a/tests/lib/Remote/InstanceTest.php b/tests/lib/Remote/InstanceTest.php
index 0adb608d875..3ec7451263d 100644
--- a/tests/lib/Remote/InstanceTest.php
+++ b/tests/lib/Remote/InstanceTest.php
@@ -21,7 +21,6 @@
namespace Test\Remote;
-
use OC\Memcache\ArrayCache;
use OC\Remote\Instance;
use OCP\ICache;
diff --git a/tests/lib/Repair/CleanTagsTest.php b/tests/lib/Repair/CleanTagsTest.php
index 5ff13beba76..b724891cda7 100644
--- a/tests/lib/Repair/CleanTagsTest.php
+++ b/tests/lib/Repair/CleanTagsTest.php
@@ -7,6 +7,7 @@
*/
namespace Test\Repair;
+
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IUserManager;
use OCP\Migration\IOutput;
diff --git a/tests/lib/Repair/ClearFrontendCachesTest.php b/tests/lib/Repair/ClearFrontendCachesTest.php
index ea33d331c4d..9acd1f4df17 100644
--- a/tests/lib/Repair/ClearFrontendCachesTest.php
+++ b/tests/lib/Repair/ClearFrontendCachesTest.php
@@ -22,6 +22,7 @@
*/
namespace Test\Repair;
+
use OC\Template\JSCombiner;
use OC\Template\SCSSCacher;
use OCP\ICache;
diff --git a/tests/lib/Repair/RepairInvalidSharesTest.php b/tests/lib/Repair/RepairInvalidSharesTest.php
index ed25a81ca1f..23e6b2dad5f 100644
--- a/tests/lib/Repair/RepairInvalidSharesTest.php
+++ b/tests/lib/Repair/RepairInvalidSharesTest.php
@@ -8,7 +8,6 @@
namespace Test\Repair;
-
use OC\Repair\RepairInvalidShares;
use OC\Share\Constants;
use OCP\IConfig;
diff --git a/tests/lib/Repair/RepairSqliteAutoincrementTest.php b/tests/lib/Repair/RepairSqliteAutoincrementTest.php
index 66b30ca033f..c740384fc0f 100644
--- a/tests/lib/Repair/RepairSqliteAutoincrementTest.php
+++ b/tests/lib/Repair/RepairSqliteAutoincrementTest.php
@@ -7,6 +7,7 @@
*/
namespace Test\Repair;
+
use OCP\Migration\IOutput;
/**
diff --git a/tests/lib/RichObjectStrings/DefinitionsTest.php b/tests/lib/RichObjectStrings/DefinitionsTest.php
index 829689704e7..acf5256a7f3 100644
--- a/tests/lib/RichObjectStrings/DefinitionsTest.php
+++ b/tests/lib/RichObjectStrings/DefinitionsTest.php
@@ -21,7 +21,6 @@
namespace Test\RichObjectStrings;
-
use OCP\RichObjectStrings\Definitions;
use Test\TestCase;
diff --git a/tests/lib/RichObjectStrings/ValidatorTest.php b/tests/lib/RichObjectStrings/ValidatorTest.php
index 0c344248f77..63ad22c8200 100644
--- a/tests/lib/RichObjectStrings/ValidatorTest.php
+++ b/tests/lib/RichObjectStrings/ValidatorTest.php
@@ -21,7 +21,6 @@
namespace Test\RichObjectStrings;
-
use OC\RichObjectStrings\Validator;
use OCP\RichObjectStrings\Definitions;
use Test\TestCase;
diff --git a/tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php b/tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php
index c4749513140..ca37623177f 100644
--- a/tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php
+++ b/tests/lib/Security/CSP/ContentSecurityPolicyManagerTest.php
@@ -21,7 +21,6 @@
namespace Test\Security\CSP;
-
use OC\Security\CSP\ContentSecurityPolicyManager;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Security\CSP\AddContentSecurityPolicyEvent;
diff --git a/tests/lib/ServerTest.php b/tests/lib/ServerTest.php
index fbedad61fd7..ada25247393 100644
--- a/tests/lib/ServerTest.php
+++ b/tests/lib/ServerTest.php
@@ -23,6 +23,7 @@
*/
namespace Test;
+
use OC\App\AppStore\Fetcher\AppFetcher;
use OC\App\AppStore\Fetcher\CategoryFetcher;
diff --git a/tests/lib/Share/ShareTest.php b/tests/lib/Share/ShareTest.php
index d17988f4d11..b90e18a6238 100644
--- a/tests/lib/Share/ShareTest.php
+++ b/tests/lib/Share/ShareTest.php
@@ -20,6 +20,7 @@
*/
namespace Test\Share;
+
use OC\Share\Share;
use OCP\IGroup;
use OCP\IGroupManager;
diff --git a/tests/lib/TagsTest.php b/tests/lib/TagsTest.php
index a789d07b12e..54a8b85289d 100644
--- a/tests/lib/TagsTest.php
+++ b/tests/lib/TagsTest.php
@@ -21,6 +21,7 @@
*/
namespace Test;
+
use OCP\IUser;
use OCP\IUserSession;
diff --git a/tests/lib/Traits/ClientServiceTrait.php b/tests/lib/Traits/ClientServiceTrait.php
index d4f540e6c36..cab28e76dba 100644
--- a/tests/lib/Traits/ClientServiceTrait.php
+++ b/tests/lib/Traits/ClientServiceTrait.php
@@ -21,7 +21,6 @@
namespace Test\Traits;
-
use OCP\Http\Client\IClient;
use OCP\Http\Client\IClientService;
use OCP\Http\Client\IResponse;
diff --git a/tests/lib/UrlGeneratorTest.php b/tests/lib/UrlGeneratorTest.php
index afde88e3995..438835f2c3f 100644
--- a/tests/lib/UrlGeneratorTest.php
+++ b/tests/lib/UrlGeneratorTest.php
@@ -7,6 +7,7 @@
*/
namespace Test;
+
use OCP\ICacheFactory;
use OCP\IConfig;
use OCP\IRequest;
diff --git a/tests/lib/User/ManagerTest.php b/tests/lib/User/ManagerTest.php
index 3d53301b325..7cc42e81ba2 100644
--- a/tests/lib/User/ManagerTest.php
+++ b/tests/lib/User/ManagerTest.php
@@ -8,6 +8,7 @@
*/
namespace Test\User;
+
use OC\AllConfig;
use OC\User\Database;
use OC\User\Manager;