diff options
author | Joas Schilling <coding@schilljs.com> | 2023-04-19 13:49:25 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-04-20 14:44:50 +0200 |
commit | 87ea74e04be4e7f0530b6a7c285a8526393c20cb (patch) | |
tree | 00e33e8eef5360eedf70352ac74d1c87b2418a0f /tests/php | |
parent | e5eaa04728906a374c526c374c3a33771197dd09 (diff) |
fix(tests): Fix RecordingService unit test
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/php')
-rw-r--r-- | tests/php/Service/RecordingServiceTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/php/Service/RecordingServiceTest.php b/tests/php/Service/RecordingServiceTest.php index 44eafb898..1ff6fcea6 100644 --- a/tests/php/Service/RecordingServiceTest.php +++ b/tests/php/Service/RecordingServiceTest.php @@ -50,6 +50,7 @@ use OCP\Files\IMimeTypeDetector; use OCP\Files\IRootFolder; use OCP\Notification\IManager; use OCP\Share\IManager as ShareManager; +use OCP\SpeechToText\ISpeechToTextManager; use PHPUnit\Framework\MockObject\MockObject; use Psr\Log\LoggerInterface; use Test\TestCase; @@ -79,6 +80,7 @@ class RecordingServiceTest extends TestCase { private $logger; /** @var BackendNotifier|MockObject */ private $backendNotifier; + private ISpeechToTextManager|MockObject $speechToTextManager; /** @var RecordingService */ protected $recordingService; @@ -97,6 +99,7 @@ class RecordingServiceTest extends TestCase { $this->chatManager = $this->createMock(ChatManager::class); $this->logger = $this->createMock(LoggerInterface::class); $this->backendNotifier = $this->createMock(BackendNotifier::class); + $this->speechToTextManager = $this->createMock(ISpeechToTextManager::class); $this->recordingService = new RecordingService( $this->mimeTypeDetector, @@ -111,6 +114,7 @@ class RecordingServiceTest extends TestCase { $this->chatManager, $this->logger, $this->backendNotifier, + $this->speechToTextManager, ); } |