Skip to content

Commit

Permalink
BUGFIX: Dont initialize $currentContentStreamId by default in behat t…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
mhsdesign committed Jun 24, 2024
1 parent 0f2a323 commit ea28204
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,8 @@ public function iAmInContentStream(string $contentStreamId): void
*/
public function iAmInWorkspace(string $workspaceName): void
{
$workspace = $this->currentContentRepository->getWorkspaceFinder()->findOneByName(WorkspaceName::fromString($workspaceName));
if ($workspace === null) {
throw new \Exception(sprintf('Workspace "%s" does not exist, projection not yet up to date?', $workspaceName), 1548149355);
}
$this->currentWorkspaceName = WorkspaceName::fromString($workspaceName);
$this->currentContentStreamId = $workspace->currentContentStreamId;
$this->currentContentStreamId = null;
}

/**
Expand Down

0 comments on commit ea28204

Please sign in to comment.