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
juliusknorr committed May 8, 2024
1 parent e1014cb commit b035ae6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 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,8 @@ 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];
[$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 b035ae6

Please sign in to comment.