Another test for user live status listener

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2020-10-01 21:27:45 +02:00
parent a61394d528
commit 00bca0fe3e
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 3 additions and 1 deletions

View File

@ -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],
];
}