Merge pull request #3670 from nextcloud/bugfix/noid/stack-update-check

Properly check for the stack AND setting board permissions
This commit is contained in:
Julius Härtl
2022-04-11 16:34:56 +02:00
committed by GitHub
2 changed files with 6 additions and 3 deletions

View File

@@ -195,7 +195,7 @@ class StackServiceTest extends TestCase {
}
public function testUpdate() {
$this->permissionService->expects($this->once())->method('checkPermission');
$this->permissionService->expects($this->exactly(2))->method('checkPermission');
$stack = new Stack();
$this->stackMapper->expects($this->once())->method('find')->willReturn($stack);
$this->stackMapper->expects($this->once())->method('update')->willReturn($stack);