diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-10-01 21:27:45 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-10-01 21:27:45 +0200 |
commit | 00bca0fe3eb90b089521671cde8fbde02f07f800 (patch) | |
tree | f0d99635159d6bb0a9fbb843cb6bfab8b5ae2dc8 /apps/user_status/tests/Unit | |
parent | a61394d52833ade6fef4b2e6935bd5862e089d89 (diff) | |
download | nextcloud-server-00bca0fe3eb90b089521671cde8fbde02f07f800.tar.gz nextcloud-server-00bca0fe3eb90b089521671cde8fbde02f07f800.zip |
Another test for user live status listener
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/user_status/tests/Unit')
-rw-r--r-- | apps/user_status/tests/Unit/Listener/UserLiveStatusListenerTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/user_status/tests/Unit/Listener/UserLiveStatusListenerTest.php b/apps/user_status/tests/Unit/Listener/UserLiveStatusListenerTest.php index 29f444ece0b..ff12628ba70 100644 --- a/apps/user_status/tests/Unit/Listener/UserLiveStatusListenerTest.php +++ b/apps/user_status/tests/Unit/Listener/UserLiveStatusListenerTest.php @@ -99,7 +99,7 @@ class UserLiveStatusListenerTest extends TestCase { $user->method('getUID')->willReturn($userId); $event = new UserLiveStatusEvent($user, $eventStatus, $eventTimestamp); - $this->timeFactory->expects($this->once()) + $this->timeFactory->expects($this->atMost(1)) ->method('getTime') ->willReturn(5000); @@ -149,6 +149,8 @@ class UserLiveStatusListenerTest extends TestCase { ['john.doe', 'online', 5000, false, 'online', 5000, false, true], ['john.doe', 'away', 5000, false, 'online', 5000, true, true], ['john.doe', 'online', 5000, false, 'away', 5000, true, false], + ['john.doe', 'away', 5000, true, 'online', 5000, true, false], + ['john.doe', 'online', 5000, true, 'away', 5000, true, false], ]; } |