We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 237eba3 commit 0b55079Copy full SHA for 0b55079
tests/AppInfo/ApplicationTest.php
@@ -123,9 +123,7 @@ public function testRegisterNotifier() {
123
$manager = $this->createMock(IManager::class);
124
$manager->expects($this->once())
125
->method('registerNotifierService')
126
- ->willReturnCallback(function($service) {
127
- $this->assertInstanceOf(Notifier::class, $service);
128
- });
+ ->with(Notifier::class);
129
130
$this->overwriteService('NotificationManager', $manager);
131
$this->invokePrivate($app, 'registerNotificationNotifier');
0 commit comments