Properly check for the stack AND setting board permissions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
backportbot[bot]
parent
1cdea9dba0
commit
47345e10f1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user