Skip to content

Commit 4907701

Browse files
committed
test: update SettingsLoader test to expect default settings
Update test expectation to match new behavior where settings are always returned with default values when showSettings is enabled, even without an authenticated user. Signed-off-by: Vitor Mattos <[email protected]>
1 parent ddddc7b commit 4907701

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/php/Unit/Service/File/SettingsLoaderTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ public function testLoadSettingsWithoutUser(): void {
8989
$service = $this->getService();
9090
$service->loadSettings($fileData, $options);
9191

92-
// When there's no user and signer is not identified, settings should not be set
93-
$this->assertFalse(isset($fileData->settings));
92+
$this->assertTrue(isset($fileData->settings));
93+
$this->assertFalse($fileData->settings['canSign']);
94+
$this->assertFalse($fileData->settings['canRequestSign']);
95+
$this->assertFalse($fileData->settings['hasSignatureFile']);
9496
}
9597

9698
public function testGetIdentificationDocumentsStatusDisabled(): void {

0 commit comments

Comments
 (0)