From ea28204af56d75a696fe5b53c8531c65bc297a11 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Sun, 23 Jun 2024 19:24:56 +0200 Subject: [PATCH] BUGFIX: Dont initialize $currentContentStreamId by default in behat tests --- .../Features/Bootstrap/CRTestSuiteRuntimeVariables.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/CRTestSuiteRuntimeVariables.php b/Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/CRTestSuiteRuntimeVariables.php index 656e45666cc..f5c2204d01d 100644 --- a/Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/CRTestSuiteRuntimeVariables.php +++ b/Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/CRTestSuiteRuntimeVariables.php @@ -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; } /**