diff options
Diffstat (limited to 'apps/twofactor_backupcodes/tests/Unit/Listener/ActivityPublisherTest.php')
-rw-r--r-- | apps/twofactor_backupcodes/tests/Unit/Listener/ActivityPublisherTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/twofactor_backupcodes/tests/Unit/Listener/ActivityPublisherTest.php b/apps/twofactor_backupcodes/tests/Unit/Listener/ActivityPublisherTest.php index 5a5b3a6d29a..2aec2e72d94 100644 --- a/apps/twofactor_backupcodes/tests/Unit/Listener/ActivityPublisherTest.php +++ b/apps/twofactor_backupcodes/tests/Unit/Listener/ActivityPublisherTest.php @@ -73,26 +73,26 @@ class ActivityPublisherTest extends TestCase { $activityEvent = $this->createMock(IEvent::class); $this->activityManager->expects($this->once()) ->method('generateEvent') - ->will($this->returnValue($activityEvent)); + ->willReturn($activityEvent); $activityEvent->expects($this->once()) ->method('setApp') ->with('twofactor_backupcodes') - ->will($this->returnSelf()); + ->willReturnSelf(); $activityEvent->expects($this->once()) ->method('setType') ->with('security') - ->will($this->returnSelf()); + ->willReturnSelf(); $activityEvent->expects($this->once()) ->method('setAuthor') ->with('fritz') - ->will($this->returnSelf()); + ->willReturnSelf(); $activityEvent->expects($this->once()) ->method('setAffectedUser') ->with('fritz') - ->will($this->returnSelf()); + ->willReturnSelf(); $this->activityManager->expects($this->once()) ->method('publish') - ->will($this->returnValue($activityEvent)); + ->willReturn($activityEvent); $this->listener->handle($event); } |