Skip to content

Commit

Permalink
Refactor public link token
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed May 30, 2022
1 parent c067fcb commit f8663b7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/acceptance/features/bootstrap/PublicWebDavContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -1351,9 +1351,7 @@ public function theMtimeOfFileInTheLastSharedPublicLinkUsingTheWebdavApiShouldBe
string $fileName,
string $mtime
):void {
// pdd - this looks crap
$tokenArray = $this->featureContext->getLastPublicShareData()->data->token;
$token = (string)$tokenArray[0];
$token = $this->featureContext->getLastPublicShareToken();
$baseUrl = $this->featureContext->getBaseUrl();
if (\TestHelpers\OcisHelper::isTestingOnOcisOrReva()) {
$mtime = \explode(" ", $mtime);
Expand Down Expand Up @@ -1394,9 +1392,7 @@ public function theMtimeOfFileInTheLastSharedPublicLinkUsingTheWebdavApiShouldNo
string $fileName,
string $mtime
):void {
// pdd - this looks crap
$tokenArray = $this->featureContext->getLastPublicShareData()->data->token;
$token = (string)$tokenArray[0];
$token = $this->featureContext->getLastPublicShareToken();
$baseUrl = $this->featureContext->getBaseUrl();
Assert::assertNotEquals(
$mtime,
Expand Down

0 comments on commit f8663b7

Please sign in to comment.