Fix deleteAcl

Signed-off-by: raul <raul@nextcloud.com>
This commit is contained in:
raul
2022-09-21 19:12:54 +02:00
committed by Raul Ferreira Fuentes
parent af8e61ece6
commit 24a4260e55
3 changed files with 19 additions and 8 deletions

View File

@@ -164,10 +164,14 @@ class BoardControllerTest extends \Test\TestCase {
}
public function testDeleteAcl() {
$acl = $this->getMockBuilder(Acl::class)
->disableOriginalConstructor()
->getMock();
$this->boardService->expects($this->once())
->method('deleteAcl')
->with(1)
->willReturn(true);
$this->assertEquals(true, $this->controller->deleteAcl(1));
->willReturn($acl);
$this->assertEquals($acl, $this->controller->deleteAcl(1));
}
}