summaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php')
-rw-r--r--apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php b/apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php
index 0f03fba7de8..73754cecb95 100644
--- a/apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php
+++ b/apps/twofactor_backupcodes/tests/Unit/Notification/NotifierTest.php
@@ -43,7 +43,7 @@ class NotifierTest extends TestCase {
/** @var IL10N|MockObject */
protected $l;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->l = $this->createMock(IL10N::class);
@@ -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())