Skip to content

Commit

Permalink
make the fileId to be a string
Browse files Browse the repository at this point in the history
ocis does not use an int as file-id
  • Loading branch information
individual-it committed Jul 5, 2021
1 parent b8e8d74 commit e72f99a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/acceptance/features/bootstrap/FilesVersionsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ class FilesVersionsContext implements Context {
private $featureContext;

/**
* @param int $fileId
* @param string $fileId
*
* @return string
*/
private function getVersionsPathForFileId(int $fileId) {
private function getVersionsPathForFileId(string $fileId) {
return "/meta/$fileId/v";
}

Expand Down Expand Up @@ -149,7 +149,7 @@ public function theVersionFolderOfFileShouldContainElements(
/**
* @Then the version folder of fileId :fileId for user :user should contain :count element(s)
*
* @param int $fileId
* @param string $fileId
* @param string $user
* @param int $count
*
Expand All @@ -160,7 +160,7 @@ public function theVersionFolderOfFileIdShouldContainElements(
$user,
$count
) {
$responseXml = $this->listVersionFolder($user, (int)$fileId, 1);
$responseXml = $this->listVersionFolder($user, $fileId, 1);
$xmlPart = $responseXml->xpath("//d:prop/d:getetag");
Assert::assertEquals(
$count,
Expand Down Expand Up @@ -189,7 +189,7 @@ public function theContentLengthOfFileForUserInVersionsFolderIs(
$fileId = $this->featureContext->getFileIdForPath($user, $path);
$responseXml = $this->listVersionFolder(
$user,
(int)$fileId,
$fileId,
1,
['getcontentlength']
);
Expand Down Expand Up @@ -239,15 +239,15 @@ public function downloadVersion(string $user, string $path, string $index) {
* with an registered namespace with 'd' as prefix and 'DAV:' as namespace
*
* @param string $user
* @param int $fileId
* @param string $fileId
* @param int $folderDepth
* @param string[]|null $properties
*
* @return SimpleXMLElement
*/
public function listVersionFolder(
string $user,
int $fileId,
string $fileId,
int $folderDepth,
array $properties = null
) {
Expand Down

0 comments on commit e72f99a

Please sign in to comment.