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-05-13 17:10:45 +0300
committerJoas Schilling <coding@schilljs.com>2020-05-14 10:39:38 +0300
commit5eb3dbaf7b37ef61f256a47ae622abfb4cef67e2 (patch)
treea1736adab5c78e920772e0dcc1f7008535b7edbe /tests
parentfe2335984ba57f64593a950ff710f5f5c68b1760 (diff)
Make activities link to the conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Activity/Provider/BaseTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/php/Activity/Provider/BaseTest.php b/tests/php/Activity/Provider/BaseTest.php
index f38e8058a..253d8177b 100644
--- a/tests/php/Activity/Provider/BaseTest.php
+++ b/tests/php/Activity/Provider/BaseTest.php
@@ -236,12 +236,21 @@ class BaseTest extends TestCase {
->method('getDisplayName')
->with('user')
->willReturn($expectedName);
+ $room->expects($this->once())
+ ->method('getToken')
+ ->willReturn('token');
+
+ $this->url->expects($this->once())
+ ->method('linkToRouteAbsolute')
+ ->with('spreed.Page.showCall', ['token' => 'token'])
+ ->willReturn('url');
$this->assertEquals([
'type' => 'call',
'id' => $id,
'name' => $expectedName,
'call-type' => $expectedType,
+ 'link' => 'url',
], self::invokePrivate($provider, 'getRoom', [$room, 'user']));
}