Skip to content

Commit 0b55079

Browse files
committed
Fix test
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
1 parent 237eba3 commit 0b55079

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/AppInfo/ApplicationTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ public function testRegisterNotifier() {
123123
$manager = $this->createMock(IManager::class);
124124
$manager->expects($this->once())
125125
->method('registerNotifierService')
126-
->willReturnCallback(function($service) {
127-
$this->assertInstanceOf(Notifier::class, $service);
128-
});
126+
->with(Notifier::class);
129127

130128
$this->overwriteService('NotificationManager', $manager);
131129
$this->invokePrivate($app, 'registerNotificationNotifier');

0 commit comments

Comments
 (0)