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:
authorGary Kim <gary@garykim.dev>2021-06-11 06:35:54 +0300
committerGary Kim <gary@garykim.dev>2021-07-15 20:54:35 +0300
commita35b98f8c15e19bde6098081b41e544e95e4b532 (patch)
treea9af9784cd16ae1c4321c8c29e1ab8996db57196 /tests
parentddda9be34bd14f8ccf14521a6e100870493cd4b3 (diff)
Implement CloudFederationProvider for Talk
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Notification/NotifierTest.php7
-rw-r--r--tests/php/RoomTest.php1
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/php/Notification/NotifierTest.php b/tests/php/Notification/NotifierTest.php
index c6d1a234d..6aeff338f 100644
--- a/tests/php/Notification/NotifierTest.php
+++ b/tests/php/Notification/NotifierTest.php
@@ -21,6 +21,7 @@
namespace OCA\Talk\Tests\php\Notifications;
+use OCA\FederatedFileSharing\AddressHandler;
use OCA\Talk\Chat\CommentsManager;
use OCA\Talk\Chat\MessageParser;
use OCA\Talk\Config;
@@ -75,6 +76,8 @@ class NotifierTest extends \Test\TestCase {
protected $definitions;
/** @var Notifier */
protected $notifier;
+ /** @var AddressHandler|MockObject */
+ protected $addressHandler;
public function setUp(): void {
parent::setUp();
@@ -91,6 +94,7 @@ class NotifierTest extends \Test\TestCase {
$this->commentsManager = $this->createMock(CommentsManager::class);
$this->messageParser = $this->createMock(MessageParser::class);
$this->definitions = $this->createMock(Definitions::class);
+ $this->addressHandler = $this->createMock(AddressHandler::class);
$this->notifier = new Notifier(
$this->lFactory,
@@ -104,7 +108,8 @@ class NotifierTest extends \Test\TestCase {
$this->notificationManager,
$this->commentsManager,
$this->messageParser,
- $this->definitions
+ $this->definitions,
+ $this->addressHandler
);
}
diff --git a/tests/php/RoomTest.php b/tests/php/RoomTest.php
index 623c3176d..65df9b395 100644
--- a/tests/php/RoomTest.php
+++ b/tests/php/RoomTest.php
@@ -70,6 +70,7 @@ class RoomTest extends TestCase {
'Test',
'description',
'passy',
+ '',
0,
Participant::FLAG_DISCONNECTED,
null,