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:
authorJoas Schilling <coding@schilljs.com>2020-04-07 10:38:51 +0300
committerJoas Schilling <coding@schilljs.com>2020-04-07 10:38:51 +0300
commite2b7e69877b9c510cf3095c81b0d0168b720178d (patch)
tree1cdcd183613fedb95ba199f1a94bc0e7ce3aa2d4 /tests
parentd93a8a49e6a54eae0df2a291b4123b5fb03eabb4 (diff)
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Controller/RoomControllerTest.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/php/Controller/RoomControllerTest.php b/tests/php/Controller/RoomControllerTest.php
index e7bbaa551..dd5b10939 100644
--- a/tests/php/Controller/RoomControllerTest.php
+++ b/tests/php/Controller/RoomControllerTest.php
@@ -25,6 +25,7 @@ namespace OCA\Talk\Tests\php\Controller;
use OCA\Talk\Chat\ChatManager;
use OCA\Talk\Chat\MessageParser;
+use OCA\Talk\Config;
use OCA\Talk\Controller\RoomController;
use OCA\Talk\GuestManager;
use OCA\Talk\Manager;
@@ -71,7 +72,9 @@ class RoomControllerTest extends TestCase {
/** @var IL10N|MockObject */
private $l;
/** @var IConfig|MockObject */
- private $config;
+ private $serverConfig;
+ /** @var Config|MockObject */
+ private $talkConfig;
public function setUp(): void {
@@ -89,7 +92,8 @@ class RoomControllerTest extends TestCase {
$this->messageParser = $this->createMock(MessageParser::class);
$this->timeFactory = $this->createMock(ITimeFactory::class);
$this->l = $this->createMock(IL10N::class);
- $this->config = $this->createMock(IConfig::class);
+ $this->serverConfig = $this->createMock(IConfig::class);
+ $this->talkConfig = $this->createMock(Config::class);
}
/**
@@ -113,7 +117,8 @@ class RoomControllerTest extends TestCase {
$this->messageParser,
$this->timeFactory,
$this->l,
- $this->config
+ $this->serverConfig,
+ $this->talkConfig
);
$controller->setRoom($room);
$controller->setParticipant($participant);