diff options
author | Joas Schilling <coding@schilljs.com> | 2024-03-18 10:29:45 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-03-18 11:02:19 +0100 |
commit | 03605b04b41aede858de98d1b7e3b8625be06293 (patch) | |
tree | ccb7d89bc99acdd9f6eb8cd421e6fbba8a3f839a /tests/php | |
parent | a330ccce2b55875972c164fba89006642adea200 (diff) |
fix(federation): Fix updating PCM after editing or deleting a message
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/php')
-rw-r--r-- | tests/php/Federation/FederationTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/php/Federation/FederationTest.php b/tests/php/Federation/FederationTest.php index 94e8690c0..922586a0c 100644 --- a/tests/php/Federation/FederationTest.php +++ b/tests/php/Federation/FederationTest.php @@ -40,6 +40,7 @@ use OCA\Talk\Model\RetryNotificationMapper; use OCA\Talk\Notification\FederationChatNotifier; use OCA\Talk\Room; use OCA\Talk\Service\ParticipantService; +use OCA\Talk\Service\ProxyCacheMessageService; use OCA\Talk\Service\RoomService; use OCP\App\IAppManager; use OCP\AppFramework\Http; @@ -101,6 +102,7 @@ class FederationTest extends TestCase { protected $attendeeMapper; protected ProxyCacheMessageMapper|MockObject $proxyCacheMessageMapper; + protected ProxyCacheMessageService|MockObject $proxyCacheMessageService; protected FederationChatNotifier|MockObject $federationChatNotifier; protected UserConverter|MockObject $userConverter; protected ICacheFactory|MockObject $cacheFactory; @@ -123,6 +125,7 @@ class FederationTest extends TestCase { $this->logger = $this->createMock(LoggerInterface::class); $this->url = $this->createMock(IURLGenerator::class); $this->proxyCacheMessageMapper = $this->createMock(ProxyCacheMessageMapper::class); + $this->proxyCacheMessageService = $this->createMock(ProxyCacheMessageService::class); $this->cacheFactory = $this->createMock(ICacheFactory::class); $this->retryNotificationMapper = $this->createMock(RetryNotificationMapper::class); $this->timeFactory = $this->createMock(ITimeFactory::class); @@ -163,6 +166,7 @@ class FederationTest extends TestCase { $this->createMock(IEventDispatcher::class), $this->logger, $this->proxyCacheMessageMapper, + $this->proxyCacheMessageService, $this->federationChatNotifier, $this->userConverter, $this->cacheFactory, |