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>2022-03-04 14:23:40 +0300
committerJoas Schilling <coding@schilljs.com>2022-03-15 11:40:30 +0300
commitc92c70358824b2b92f8bda061cd8ea0703b0bad2 (patch)
tree7bb760fcd4fbc95f7d6bd186304fb20677ad58b8 /tests
parent2080e4049a79b41e5c93315b96cc09bf1c62fda5 (diff)
Inject the attendee as well when loaded already
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Chat/NotifierTest.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/php/Chat/NotifierTest.php b/tests/php/Chat/NotifierTest.php
index 2d09b9cb9..c921ac318 100644
--- a/tests/php/Chat/NotifierTest.php
+++ b/tests/php/Chat/NotifierTest.php
@@ -341,7 +341,15 @@ class NotifierTest extends TestCase {
->willReturn($participants);
$actual = $this->invokePrivate($this->getNotifier(), 'addMentionAllToList', [$room, $usersToNotify]);
- $this->assertEqualsCanonicalizing($return, $actual);
+ $this->assertCount(count($return), $actual);
+ foreach ($actual as $key => $value) {
+ $this->assertIsArray($value);
+ if (key_exists('attendee', $value)) {
+ $this->assertInstanceOf(Attendee::class, $value['attendee']);
+ unset($value['attendee']);
+ }
+ $this->assertEqualsCanonicalizing($return[$key], $value);
+ }
}
public function dataAddMentionAllToList(): array {