Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-04-11 17:34:56 +0300
committerGitHub <noreply@github.com>2022-04-11 17:34:56 +0300
commit020429c1810f270764c0b2bd58d4cc0804e5079f (patch)
treec878526ba3f3fd540c72ac47b04eb42c6c9db875 /tests
parent7c8e762d5d4ea58e7678c387cdee00bc3a83a888 (diff)
parent86d3de2211ed07cbe37cc7059f03843eb4887097 (diff)
Merge pull request #3670 from nextcloud/bugfix/noid/stack-update-check
Properly check for the stack AND setting board permissions
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/Service/StackServiceTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/Service/StackServiceTest.php b/tests/unit/Service/StackServiceTest.php
index 79e04eca..913a74f6 100644
--- a/tests/unit/Service/StackServiceTest.php
+++ b/tests/unit/Service/StackServiceTest.php
@@ -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);