diff options
author | Marcel Klehr <mklehr@gmx.net> | 2024-04-30 15:48:00 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2024-05-14 11:38:39 +0200 |
commit | 8352b27c11f78f7359caf28d4ef7175014d7b0d3 (patch) | |
tree | 1514c018798833e8e7efad592636bd29978624ec /tests/lib/TaskProcessing | |
parent | 00894e24208e4e6ae78609b8828ba32544e88ee8 (diff) | |
download | nextcloud-server-8352b27c11f78f7359caf28d4ef7175014d7b0d3.tar.gz nextcloud-server-8352b27c11f78f7359caf28d4ef7175014d7b0d3.zip |
fix: weed out some psalm errors and run cs:fix
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'tests/lib/TaskProcessing')
-rw-r--r-- | tests/lib/TaskProcessing/TaskProcessingTest.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/lib/TaskProcessing/TaskProcessingTest.php b/tests/lib/TaskProcessing/TaskProcessingTest.php index 65ee5382883..01bb0253853 100644 --- a/tests/lib/TaskProcessing/TaskProcessingTest.php +++ b/tests/lib/TaskProcessing/TaskProcessingTest.php @@ -13,9 +13,7 @@ use OC\AppFramework\Bootstrap\RegistrationContext; use OC\AppFramework\Bootstrap\ServiceRegistration; use OC\EventDispatcher\EventDispatcher; use OC\TaskProcessing\Db\TaskMapper; -use OC\TaskProcessing\Db\Task as DbTask; use OC\TaskProcessing\Manager; -use OCP\AppFramework\Db\DoesNotExistException; use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\IJobList; use OCP\EventDispatcher\IEventDispatcher; @@ -43,7 +41,7 @@ use Psr\Log\LoggerInterface; use Test\BackgroundJob\DummyJobList; class AudioToImage implements ITaskType { - const ID = 'test:audiotoimage'; + public const ID = 'test:audiotoimage'; public function getId(): string { return self::ID; @@ -135,7 +133,7 @@ class SuccessfulSyncProvider implements IProvider, ISynchronousProvider { } class FailingSyncProvider implements IProvider, ISynchronousProvider { - const ERROR_MESSAGE = 'Failure'; + public const ERROR_MESSAGE = 'Failure'; public function getId(): string { return 'test:sync:fail'; } @@ -258,7 +256,7 @@ class TaskProcessingTest extends \Test\TestCase { ->with('core', 'ai.textprocessing_provider_preferences', '') ->willReturn(''); - $this->eventDispatcher = $this->createMock(IEventDispatcher::class); + $this->eventDispatcher = $this->createMock(IEventDispatcher::class); $this->manager = new Manager( $this->coordinator, |