Skip to content

Commit

Permalink
Use cookie jar in auth tests when needed
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
  • Loading branch information
PVince81 committed Feb 4, 2022
1 parent 75c54ae commit aa1fe70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/integration/features/bootstrap/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ public function aNewRestrictedClientTokenIsAdded() {
$fullUrl = substr($this->baseUrl, 0, -5) . '/index.php/settings/personal/authtokens/' . $newCreatedTokenId;
$client = new Client();
$options = [
'auth' => ['user0', '123456'],
'headers' => [
'requesttoken' => $this->requestToken,
],
Expand All @@ -143,6 +142,7 @@ public function aNewRestrictedClientTokenIsAdded() {
'filesystem' => false,
],
],
'cookies' => $this->cookieJar,
];
$this->response = $client->request('PUT', $fullUrl, $options);
$this->restrictedClientToken = $tokenObj->token;
Expand Down

0 comments on commit aa1fe70

Please sign in to comment.