aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Notification/NotificationTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Notification/NotificationTest.php')
-rw-r--r--tests/lib/Notification/NotificationTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Notification/NotificationTest.php b/tests/lib/Notification/NotificationTest.php
index eabed273608..5aa24fc762a 100644
--- a/tests/lib/Notification/NotificationTest.php
+++ b/tests/lib/Notification/NotificationTest.php
@@ -466,7 +466,7 @@ class NotificationTest extends TestCase {
$this->assertSame($this->notification, $this->notification->addAction($action));
- $this->setExpectedException('\InvalidArgumentException');
+ $this->expectException(\InvalidArgumentException::class);
$this->notification->addAction($action);
}
@@ -512,7 +512,7 @@ class NotificationTest extends TestCase {
$this->assertSame($this->notification, $this->notification->addParsedAction($action));
- $this->setExpectedException('\InvalidArgumentException');
+ $this->expectException(\InvalidArgumentException::class);
$this->notification->addParsedAction($action);
}