From 3af0ec101a76e9d066c13bea5398165097e4c987 Mon Sep 17 00:00:00 2001 From: Jana Peper Date: Tue, 10 Dec 2024 16:46:59 +0100 Subject: [PATCH] test: add disabled task type unit test Signed-off-by: Jana Peper --- tests/lib/TaskProcessing/TaskProcessingTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/lib/TaskProcessing/TaskProcessingTest.php b/tests/lib/TaskProcessing/TaskProcessingTest.php index b36e60959b66b..1b0b3c848860a 100644 --- a/tests/lib/TaskProcessing/TaskProcessingTest.php +++ b/tests/lib/TaskProcessing/TaskProcessingTest.php @@ -500,6 +500,7 @@ public function testProviderShouldBeRegisteredAndTaskTypeDisabled(): void { self::assertCount(1, $this->manager->getAvailableTaskTypes(true)); self::assertFalse($this->manager->hasProviders()); self::expectException(\OCP\TaskProcessing\Exception\PreConditionNotMetException::class); + $this->manager->scheduleTask(new Task(TextToText::ID, ['input' => 'Hello'], 'test', null)); } public function testProviderShouldBeRegisteredAndTaskFailValidation(): void {