diff options
Diffstat (limited to 'apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php')
-rw-r--r-- | apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php b/apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php index 0bbdc8619b4..73754cecb95 100644 --- a/apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php +++ b/apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php @@ -64,10 +64,10 @@ class NotifierTest extends TestCase { ); } - /** - * @expectedException \InvalidArgumentException - */ + public function testPrepareWrongApp() { + $this->expectException(\InvalidArgumentException::class); + /** @var INotification|\PHPUnit_Framework_MockObject_MockObject $notification */ $notification = $this->createMock(INotification::class); $notification->expects($this->once()) @@ -79,10 +79,10 @@ class NotifierTest extends TestCase { $this->notifier->prepare($notification, 'en'); } - /** - * @expectedException \InvalidArgumentException - */ + public function testPrepareWrongSubject() { + $this->expectException(\InvalidArgumentException::class); + /** @var INotification|\PHPUnit_Framework_MockObject_MockObject $notification */ $notification = $this->createMock(INotification::class); $notification->expects($this->once()) |