summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-04-07 16:49:03 +0200
committerJoas Schilling <coding@schilljs.com>2022-04-07 16:49:03 +0200
commit55ace3d96773c446623b79750aee101c77eb8f6f (patch)
tree0f5939191a0cac421882ad3071040872bc22ba52 /tests
parent06d2432f89e6e08343545b3e19bd814df7ebb478 (diff)
Message types are defaulting to Verbs so lets reuse the constants
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Chat/Parser/SystemMessageTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/php/Chat/Parser/SystemMessageTest.php b/tests/php/Chat/Parser/SystemMessageTest.php
index 8e24255df..1fcf409e0 100644
--- a/tests/php/Chat/Parser/SystemMessageTest.php
+++ b/tests/php/Chat/Parser/SystemMessageTest.php
@@ -22,6 +22,7 @@
namespace OCA\Talk\Tests\php\Chat\Parser;
use OCA\DAV\CardDAV\PhotoCache;
+use OCA\Talk\Chat\ChatManager;
use OCA\Talk\Chat\Parser\SystemMessage;
use OCA\Talk\Exceptions\ParticipantNotFoundException;
use OCA\Talk\GuestManager;
@@ -528,7 +529,7 @@ class SystemMessageTest extends TestCase {
$this->assertSame($expectedParameters, $chatMessage->getMessageParameters());
if ($message === 'file_shared' && !is_subclass_of($parameters['share'], \Exception::class)) {
- $this->assertSame('comment', $chatMessage->getMessageType());
+ $this->assertSame(ChatManager::VERB_MESSAGE, $chatMessage->getMessageType());
}
}