Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions build/integration/features/bootstrap/BasicStructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ public function __construct($baseUrl, $admin, $regular_user_password) {
}
}

/**
* @BeforeScenario
*/
public function resetAuthState(): void {
$this->currentUser = '';
$this->currentServer = 'LOCAL';
Comment thread
miaulalala marked this conversation as resolved.
$this->baseUrl = $this->localBaseUrl;
$this->apiVersion = 1;
$this->requestToken = null;
$this->cookieJar = new CookieJar();
}

/**
* @Given /^using api version "(\d+)"$/
*/
Expand Down
9 changes: 9 additions & 0 deletions build/integration/features/bootstrap/Sharing.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ trait Sharing {
/** @var SimpleXMLElement[] */
private array $storedShareData = [];
private ?string $savedShareId = null;

/**
* @BeforeScenario
*/
public function resetSharingState(): void {
$this->lastShareData = null;
$this->storedShareData = [];
$this->savedShareId = null;
}
/** @var ResponseInterface */
private $response;

Expand Down
Loading