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>2019-12-03 15:48:13 +0300
committerJoas Schilling <coding@schilljs.com>2019-12-04 10:36:59 +0300
commit81db771748c2a35c0d953d608c9996a3cdf02102 (patch)
tree7cb291a5df69ce3d60ac0bc71e577af09c8d8e28 /tests
parent0e1d2b39b92c77d2c58ef60c525677957713e546 (diff)
Add constants for event names and use pattern
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Chat/Command/ExecutorTest.php2
-rw-r--r--tests/php/Controller/SignalingControllerTest.php2
-rw-r--r--tests/php/RoomTest.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/php/Chat/Command/ExecutorTest.php b/tests/php/Chat/Command/ExecutorTest.php
index f935a46b0..f797e61a4 100644
--- a/tests/php/Chat/Command/ExecutorTest.php
+++ b/tests/php/Chat/Command/ExecutorTest.php
@@ -113,7 +113,7 @@ class ExecutorTest extends TestCase {
$this->dispatcher->expects($this->once())
->method('dispatch')
- ->with(Executor::class . '::execApp', $event);
+ ->with(Executor::EVENT_APP_EXECUTE, $event);
$this->assertSame($expected, self::invokePrivate($executor, 'execApp', [$room, $message, $command, $arguments]));
}
diff --git a/tests/php/Controller/SignalingControllerTest.php b/tests/php/Controller/SignalingControllerTest.php
index fbb0103c6..930a4a140 100644
--- a/tests/php/Controller/SignalingControllerTest.php
+++ b/tests/php/Controller/SignalingControllerTest.php
@@ -532,7 +532,7 @@ class SignalingControllerTest extends \Test\TestCase {
}
public function testBackendRoomSessionFromEvent() {
- $this->dispatcher->addListener(SignalingController::class . '::signalingBackendRoom', static function(SignalingEvent $event) {
+ $this->dispatcher->addListener(SignalingController::EVENT_BACKEND_SIGNALING_ROOMS, static function(SignalingEvent $event) {
$room = $event->getRoom();
$event->setSession([
'foo' => 'bar',
diff --git a/tests/php/RoomTest.php b/tests/php/RoomTest.php
index 0f2ddfb5d..7a3f3fff4 100644
--- a/tests/php/RoomTest.php
+++ b/tests/php/RoomTest.php
@@ -41,7 +41,7 @@ class RoomTest extends TestCase {
\OC::$server,
$this->createMock(ILogger::class)
);
- $dispatcher->addListener(Room::class . '::verifyPassword', static function(VerifyRoomPasswordEvent $event) {
+ $dispatcher->addListener(Room::EVENT_PASSWORD_VERIFY, static function(VerifyRoomPasswordEvent $event) {
$password = $event->getPassword();
if ($password === '1234') {