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-09-11 17:31:42 +0300
committerJoas Schilling <coding@schilljs.com>2020-09-11 17:31:42 +0300
commit6dbea9ac59a1c9f202199781bb38f1643731e481 (patch)
treef794785d606409a2ac7784439b4e287cb07292a1 /tests
parent77626f57142585fd73d3bf7f39fea83401d929d0 (diff)
Don't leak the status when the app is disabled for the user
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Controller/ChatControllerTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/php/Controller/ChatControllerTest.php b/tests/php/Controller/ChatControllerTest.php
index ac83c8156..9b6892c04 100644
--- a/tests/php/Controller/ChatControllerTest.php
+++ b/tests/php/Controller/ChatControllerTest.php
@@ -32,6 +32,7 @@ use OCA\Talk\Model\Message;
use OCA\Talk\Participant;
use OCA\Talk\Room;
use OCA\Talk\TalkSession;
+use OCP\App\IAppManager;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Utility\ITimeFactory;
@@ -55,6 +56,8 @@ class ChatControllerTest extends TestCase {
protected $userManager;
/** @var TalkSession|MockObject */
private $session;
+ /** @var IAppManager|MockObject */
+ private $appManager;
/** @var ChatManager|MockObject */
protected $chatManager;
/** @var GuestManager|MockObject */
@@ -89,6 +92,7 @@ class ChatControllerTest extends TestCase {
$this->userId = 'testUser';
$this->userManager = $this->createMock(IUserManager::class);
$this->session = $this->createMock(TalkSession::class);
+ $this->appManager = $this->createMock(IAppManager::class);
$this->chatManager = $this->createMock(ChatManager::class);
$this->guestManager = $this->createMock(GuestManager::class);
$this->messageParser = $this->createMock(MessageParser::class);
@@ -118,6 +122,7 @@ class ChatControllerTest extends TestCase {
$this->createMock(IRequest::class),
$this->userManager,
$this->session,
+ $this->appManager,
$this->chatManager,
$this->guestManager,
$this->messageParser,