diff options
author | Vitor Mattos <vitor@php.rio> | 2023-02-27 15:40:16 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2023-02-27 20:36:19 -0300 |
commit | 16070288ad3da2177e1d50019d42a1a4a6b64f7a (patch) | |
tree | 42560164195321f3fc1e5925583737f73cff7387 /tests | |
parent | 07fb57db5914ee00fd0005626c9bc3360610fcfd (diff) |
Change type of notification
Change type of notification
Add the new type to be deleted
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/callapi/recording.feature | 4 | ||||
-rw-r--r-- | tests/php/Chat/NotifierTest.php | 16 |
2 files changed, 8 insertions, 12 deletions
diff --git a/tests/integration/features/callapi/recording.feature b/tests/integration/features/callapi/recording.feature index 0203ce340..6f59cdaa5 100644 --- a/tests/integration/features/callapi/recording.feature +++ b/tests/integration/features/callapi/recording.feature @@ -393,8 +393,8 @@ Feature: callapi/recording And user "participant1" joins room "room1" with 200 (v4) When user "participant1" store recording file "big" in room "room1" with 400 (v1) Then user "participant1" has the following notifications - | app | object_type | object_id | subject | - | spreed | recording | room1 | Failed to store recording of call room1, reach out to the admin. | + | app | object_type | object_id | subject | + | spreed | recording_information | room1 | Failed to store recording of call room1, reach out to the admin. | And user "participant1" is participant of the following unordered rooms (v4) | type | name | callRecording | | 2 | room1 | 0 | diff --git a/tests/php/Chat/NotifierTest.php b/tests/php/Chat/NotifierTest.php index 5a5636b24..944321079 100644 --- a/tests/php/Chat/NotifierTest.php +++ b/tests/php/Chat/NotifierTest.php @@ -282,16 +282,12 @@ class NotifierTest extends TestCase { ->with('spreed') ->willReturnSelf(); - $notification->expects($this->exactly(3)) + $notification->expects($this->atLeastOnce()) ->method('setObject') - ->withConsecutive( - ['chat', 'Token123'], - ['room', 'Token123'], - ['call', 'Token123'] - ) + ->with($this->anything(), 'Token123') ->willReturnSelf(); - $this->notificationManager->expects($this->exactly(3)) + $this->notificationManager->expects($this->atLeastOnce()) ->method('markProcessed') ->with($notification); @@ -315,12 +311,12 @@ class NotifierTest extends TestCase { ->with('spreed') ->willReturnSelf(); - $notification->expects($this->exactly(1)) + $notification->expects($this->atLeastOnce()) ->method('setObject') - ->with('chat', 'Token123') + ->with($this->anything(), 'Token123') ->willReturnSelf(); - $this->notificationManager->expects($this->exactly(1)) + $this->notificationManager->expects($this->atLeastOnce()) ->method('markProcessed') ->with($notification); |