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/php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-10-28 12:48:04 +0300
committerJoas Schilling <coding@schilljs.com>2021-11-03 17:00:14 +0300
commit8d73f7341de7ba2aa5ae72dabe2ee9742cb091ae (patch)
tree19563096e37845e8edf03580fa0b8dff22b99786 /tests/php
parent3b3fc8b25ae3af36129dca21134ad96285b826b8 (diff)
Use public API of trusted domain helper
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/php')
-rw-r--r--tests/php/Controller/ChatControllerTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/php/Controller/ChatControllerTest.php b/tests/php/Controller/ChatControllerTest.php
index 250c92c59..92473c7fd 100644
--- a/tests/php/Controller/ChatControllerTest.php
+++ b/tests/php/Controller/ChatControllerTest.php
@@ -23,7 +23,6 @@
namespace OCA\Talk\Tests\php\Controller;
-use OC\Security\TrustedDomainHelper;
use OCA\Talk\Chat\AutoComplete\SearchPlugin;
use OCA\Talk\Chat\ChatManager;
use OCA\Talk\Chat\MessageParser;
@@ -49,6 +48,7 @@ use OCP\IRequest;
use OCP\IUser;
use OCP\IUserManager;
use OCP\RichObjectStrings\IValidator;
+use OCP\Security\ITrustedDomainHelper;
use OCP\UserStatus\IManager as IUserStatusManager;
use PHPUnit\Framework\Constraint\Callback;
use PHPUnit\Framework\MockObject\MockObject;
@@ -88,7 +88,7 @@ class ChatControllerTest extends TestCase {
protected $timeFactory;
/** @var IValidator|MockObject */
protected $richObjectValidator;
- /** @var TrustedDomainHelper|MockObject */
+ /** @var ITrustedDomainHelper|MockObject */
protected $trustedDomainHelper;
/** @var IL10N|MockObject */
private $l;
@@ -121,7 +121,7 @@ class ChatControllerTest extends TestCase {
$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
$this->timeFactory = $this->createMock(ITimeFactory::class);
$this->richObjectValidator = $this->createMock(IValidator::class);
- $this->trustedDomainHelper = $this->createMock(TrustedDomainHelper::class);
+ $this->trustedDomainHelper = $this->createMock(ITrustedDomainHelper::class);
$this->l = $this->createMock(IL10N::class);
$this->room = $this->createMock(Room::class);