Skip to content

Commit 88b2a89

Browse files
committed
test: add comment clarifying settings behavior in FileControllerTest
Add explanatory comment about settings being returned with default values when there's no user and signer is not identified. Signed-off-by: Vitor Mattos <[email protected]>
1 parent efb4021 commit 88b2a89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/php/Api/Controller/FileControllerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public function testValidateWithSuccessUsingUnloggedUser():void {
7373
$response = $this->assertRequest();
7474
$body = json_decode($response->getBody()->getContents(), true);
7575
$this->assertFalse($body['ocs']['data']['signers'][0]['me'], "It's me");
76+
// When there's no user and signer is not identified, settings is returned with default values
7677
$this->assertFalse($body['ocs']['data']['settings']['canRequestSign'], 'Can permission to request sign');
7778
$this->assertFalse($body['ocs']['data']['settings']['canSign'], 'Can permission to sign');
7879
}

0 commit comments

Comments
 (0)