perf: Use getBoard to get the board
So that this can benefit from a local cache Signed-off-by: Carl Schwan <carl.schwan@nextclound.com>
This commit is contained in:
@@ -347,9 +347,8 @@ class PermissionServiceTest extends \Test\TestCase {
|
||||
->method('__call')
|
||||
->with('getOwner', [])
|
||||
->willReturn('user1');
|
||||
$this->aclMapper->expects($this->once())
|
||||
->method('findAll')
|
||||
->with(123)
|
||||
$board->expects($this->any())
|
||||
->method('getAcl')
|
||||
->willReturn([$aclUser, $aclGroup]);
|
||||
$this->boardMapper->expects($this->once())
|
||||
->method('find')
|
||||
|
||||
Reference in New Issue
Block a user