Bump phpunit and fix CI

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2019-12-17 11:54:45 +01:00
parent f575202a8a
commit 4c0512f0b7
42 changed files with 159 additions and 209 deletions

View File

@@ -52,7 +52,7 @@ class NotifierTest extends \Test\TestCase {
/** @var IL10N */
protected $l10n;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->l10nFactory = $this->createMock(IFactory::class);
$this->url = $this->createMock(IURLGenerator::class);
@@ -72,10 +72,8 @@ class NotifierTest extends \Test\TestCase {
->willReturn($this->l10n);
}
/**
* @expectedException \InvalidArgumentException
*/
public function testPrepareWrongApp() {
$this->expectException(\InvalidArgumentException::class);
/** @var INotification $notification */
$notification = $this->createMock(INotification::class);
$notification->expects($this->once())