Properly check for the stack AND setting board permissions

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2022-03-25 10:02:53 +01:00
committed by backportbot[bot]
parent 1cdea9dba0
commit 47345e10f1
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);