Skip to content

Commit

Permalink
tests: Only assert actual file id and skip instance id
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliushaertl authored and backportbot[bot] committed May 8, 2024
1 parent 2ceaa6f commit 727a9bc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/features/bootstrap/WopiContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ public function bothCollaboraFilesUsedTheSameFileId() {
if (count($this->fileIds) <= 1) {
throw new \Exception('Less than two file ids available for comparison');
}
$current = $this->fileIds[count($this->fileIds) - 1];
$previous = $this->fileIds[count($this->fileIds) - 2];
[$current] = explode('_', $this->fileIds[count($this->fileIds) - 1]);
[$previous] = explode('_', $this->fileIds[count($this->fileIds) - 2]);
Assert::assertEquals($current, $previous);
}

Expand All @@ -259,8 +259,9 @@ public function bothCollaboraFilesUsedADifferentFileId() {
if (count($this->fileIds) <= 1) {
throw new \Exception('Less than two file ids available for comparison');
}
$current = $this->fileIds[count($this->fileIds) - 1];
$previous = $this->fileIds[count($this->fileIds) - 2];
var_dump($this->fileIds);
[$current] = explode('_', $this->fileIds[count($this->fileIds) - 1]);
[$previous] = explode('_', $this->fileIds[count($this->fileIds) - 2]);
Assert::assertNotEquals($current, $previous);
}

Expand Down

0 comments on commit 727a9bc

Please sign in to comment.