test: Fix coding standards

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/52851/head
Joas Schilling 2025-05-15 08:48:13 +07:00
parent 57a49a50aa
commit 5f9117b939
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
22 changed files with 38 additions and 39 deletions

@ -9,17 +9,17 @@ declare(strict_types=1);
*/
namespace OCA\Comments\Tests\Unit\AppInfo;
use OCA\Comments\Activity\Filter;
use OCA\Comments\Activity\Listener;
use OCA\Comments\Activity\Provider;
use OCA\Comments\Activity\Setting;
use OCA\Comments\AppInfo\Application;
use OCA\Comments\Controller\NotificationsController;
use OCA\Comments\Notification\Notifier;
use OCP\IUserManager;
use OCP\IUserSession;
use OCP\Server;
use Test\TestCase;
use OCA\Comments\Controller\NotificationsController;
use OCA\Comments\Activity\Filter;
use OCA\Comments\Activity\Listener;
use OCA\Comments\Activity\Provider;
use OCA\Comments\Activity\Setting;
/**
* Class ApplicationTest

@ -11,7 +11,6 @@ namespace OCA\UserStatus\Tests\Listener;
use OCA\DAV\CalDAV\Status\StatusService as CalendarStatusService;
use OCA\UserStatus\Db\UserStatus;
use OCA\UserStatus\Db\UserStatusMapper;
use OCA\UserStatus\Listener\UserDeletedListener;
use OCA\UserStatus\Listener\UserLiveStatusListener;
use OCA\UserStatus\Service\StatusService;
use OCP\AppFramework\Db\DoesNotExistException;

@ -8,6 +8,7 @@
namespace Test\AppFramework\Http;
use OC\AppFramework\DependencyInjection\DIContainer;
use OC\AppFramework\Http\Dispatcher;
use OC\AppFramework\Http\Request;
use OC\AppFramework\Middleware\MiddlewareDispatcher;
@ -26,7 +27,6 @@ use OCP\IRequestId;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;
use OC\AppFramework\DependencyInjection\DIContainer;
class TestController extends Controller {
/**

@ -86,7 +86,8 @@ class TestMiddleware extends Middleware {
}
class TestController extends Controller {
public function method(): void {}
public function method(): void {
}
}
class MiddlewareDispatcherTest extends \Test\TestCase {

@ -8,7 +8,6 @@ declare(strict_types=1);
namespace Test\Authentication\Login;
use OC\Authentication\Login\ALoginCommand;
use OC\Authentication\Login\LoginData;
use OCP\IRequest;
use OCP\IUser;

@ -9,14 +9,14 @@ namespace Test\Encryption;
use OC\Encryption\EncryptionWrapper;
use OC\Encryption\Manager;
use OC\Files\Storage\Wrapper\Encryption;
use OC\Memcache\ArrayCache;
use OCA\Files_Trashbin\Storage;
use OCP\Files\Mount\IMountPoint;
use OCP\Files\Storage\IDisableEncryptionStorage;
use OCP\Files\Storage\IStorage;
use Psr\Log\LoggerInterface;
use Test\TestCase;
use OCA\Files_Trashbin\Storage;
use OC\Files\Storage\Wrapper\Encryption;
class EncryptionWrapperTest extends TestCase {
/** @var EncryptionWrapper */

@ -9,6 +9,7 @@ namespace Test\Files\Node;
use OC\Files\FileInfo;
use OC\Files\Mount\Manager;
use OC\Files\Node\Root;
use OC\Files\View;
use OC\Memcache\ArrayCache;
use OCP\EventDispatcher\IEventDispatcher;
@ -21,7 +22,6 @@ use OCP\ICacheFactory;
use OCP\IUser;
use OCP\IUserManager;
use Psr\Log\LoggerInterface;
use OC\Files\Node\Root;
/**
* Class NodeTest

@ -13,7 +13,7 @@ abstract class ObjectStoreTestCase extends TestCase {
/** @var string[] */
private $cleanup = [];
private $instance = nulL;
private $instance = null;
/**
* @return \OCP\Files\ObjectStore\IObjectStore

@ -10,9 +10,11 @@ declare(strict_types=1);
namespace Test\Files\Stream;
use OC\Encryption\File;
use OC\Encryption\Util;
use OC\Files\Cache\CacheEntry;
use OC\Files\Storage\Storage;
use OC\Files\Storage\Wrapper\Wrapper;
use OC\Files\Stream\Encryption;
use OC\Files\View;
use OC\Memcache\ArrayCache;
use OCP\Encryption\IEncryptionModule;
@ -22,8 +24,6 @@ use OCP\ICacheFactory;
use OCP\IConfig;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Log\LoggerInterface;
use OC\Files\Stream\Encryption;
use OC\Encryption\Util;
class EncryptionTest extends \Test\TestCase {
public const DEFAULT_WRAPPER = '\OC\Files\Stream\Encryption';