Skip to content
Snippets Groups Projects
Unverified Commit 7f0b2738 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Fix notifier test

parent 48679ae3
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,9 @@ class NotifierTest extends TestCase {
$this->l10n->expects($this->any())
->method('t')
->willReturnCallback(function ($string, $args) {
if (!is_array($args)) {
$args = [$args];
}
return vsprintf($string, $args);
});
$this->l10n->expects($this->any())
......@@ -103,7 +106,7 @@ class NotifierTest extends TestCase {
$this->assertEquals($this->notifier->getName(), 'Calendar');
}
public function testPrepareWrongApp(): void {
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('Notification not from this app');
......@@ -120,7 +123,7 @@ class NotifierTest extends TestCase {
$this->notifier->prepare($notification, 'en');
}
public function testPrepareWrongSubject() {
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('Unknown subject');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment