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

@@ -73,7 +73,7 @@ class BoardServiceTest extends TestCase {
private $eventDispatcher;
private $userId = 'admin';
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->l10n = $this->createMock(L10N::class);
$this->aclMapper = $this->createMock(AclMapper::class);
@@ -178,10 +178,8 @@ class BoardServiceTest extends TestCase {
$this->assertCount(4, $b->getLabels());
}
/**
* @expectedException \OCA\Deck\NoPermissionException
*/
public function testCreateDenied() {
$this->expectException(\OCA\Deck\NoPermissionException::class);
$board = new Board();
$board->setTitle('MyBoard');
$board->setOwner('admin');