Skip to content

Commit d8b2603

Browse files
committed
fix(tests): Add back special handling of guest user in integration tests
It is used by some applications. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent eb5ad83 commit d8b2603

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/integration/features/bootstrap/BasicStructure.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ public function sendingToWith($verb, $url, $body) {
153153
$options = [];
154154
if ($this->currentUser === 'admin') {
155155
$options['auth'] = $this->adminUser;
156+
} elseif (strpos($this->currentUser, 'guest') !== 0) {
157+
$options['auth'] = [$this->currentUser, self::TEST_PASSWORD];
156158
} elseif (strpos($this->currentUser, 'anonymous') !== 0) {
157159
$options['auth'] = [$this->currentUser, $this->regularUser];
158160
}

0 commit comments

Comments
 (0)