Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2022-01-25 22:42:34 +0300
committerVitor Mattos <vitor@php.rio>2022-02-15 18:49:51 +0300
commit8f70d2d4e9b9da40b5d497992203cdff5f55a113 (patch)
tree74434802297e6f3cdabe37bd3aba133c873d2720 /tests
parentb2f31f2c8ec15fd435e850b4c51b79f9f6226cd5 (diff)
Notify
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/CapabilitiesTest.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/php/CapabilitiesTest.php b/tests/php/CapabilitiesTest.php
index 598330c86..a247a18bc 100644
--- a/tests/php/CapabilitiesTest.php
+++ b/tests/php/CapabilitiesTest.php
@@ -26,6 +26,7 @@ declare(strict_types=1);
namespace OCA\Talk\Tests\Unit;
use OCA\Talk\Capabilities;
+use OCA\Talk\Chat\CommentsManager;
use OCA\Talk\Config;
use OCA\Talk\Participant;
use OCP\Capabilities\IPublicCapability;
@@ -41,6 +42,8 @@ class CapabilitiesTest extends TestCase {
protected $serverConfig;
/** @var Config|MockObject */
protected $talkConfig;
+ /** @var CommentsManager|MockObject */
+ protected $commentsManager;
/** @var IUserSession|MockObject */
protected $userSession;
/** @var array */
@@ -50,7 +53,11 @@ class CapabilitiesTest extends TestCase {
parent::setUp();
$this->serverConfig = $this->createMock(IConfig::class);
$this->talkConfig = $this->createMock(Config::class);
+ $this->commentsManager = $this->createMock(CommentsManager::class);
$this->userSession = $this->createMock(IUserSession::class);
+ $this->commentsManager->expects($this->any())
+ ->method('supportReactions')
+ ->willReturn(true);
$this->baseFeatures = [
'audio',
@@ -104,6 +111,7 @@ class CapabilitiesTest extends TestCase {
$capabilities = new Capabilities(
$this->serverConfig,
$this->talkConfig,
+ $this->commentsManager,
$this->userSession
);
@@ -161,6 +169,7 @@ class CapabilitiesTest extends TestCase {
$capabilities = new Capabilities(
$this->serverConfig,
$this->talkConfig,
+ $this->commentsManager,
$this->userSession
);
@@ -247,6 +256,7 @@ class CapabilitiesTest extends TestCase {
$capabilities = new Capabilities(
$this->serverConfig,
$this->talkConfig,
+ $this->commentsManager,
$this->userSession
);