From 6d3f669cddc971c4a2cdceeb4c63146a18c3ce1e Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Fri, 17 May 2024 11:10:43 +0200 Subject: [PATCH] TASK: Adjusts TestSuite to be synchronous This change was partially ported from https://github.com/neos/neos-development-collection/pull/4988 Following things have been adjusted: - Removal of the step: The graph projection is fully up to date - remove lastCommandOrEventResult - Removal of the step: The documenturipath projection is up to date - Use injected Connection in tests instead of DoctrineDbalClient (this will be fully refactored in #4988) --- Tests/Behavior/Features/Bootstrap/FeatureContext.php | 1 - Tests/Behavior/Features/Export/Export.feature | 2 -- 2 files changed, 3 deletions(-) diff --git a/Tests/Behavior/Features/Bootstrap/FeatureContext.php b/Tests/Behavior/Features/Bootstrap/FeatureContext.php index bc5ea2a..01310c7 100644 --- a/Tests/Behavior/Features/Bootstrap/FeatureContext.php +++ b/Tests/Behavior/Features/Bootstrap/FeatureContext.php @@ -44,7 +44,6 @@ public function __construct() self::bootstrapFlow(); $this->contentRepositoryRegistry = $this->getObject(ContentRepositoryRegistry::class); - $this->setupCRTestSuiteTrait(); $this->setupCrImportExportTrait(); } diff --git a/Tests/Behavior/Features/Export/Export.feature b/Tests/Behavior/Features/Export/Export.feature index 4ec48a5..d2580ce 100644 --- a/Tests/Behavior/Features/Export/Export.feature +++ b/Tests/Behavior/Features/Export/Export.feature @@ -17,7 +17,6 @@ Feature: As a user of the CR I want to export the event stream | workspaceTitle | "Live" | | workspaceDescription | "The live workspace" | | newContentStreamId | "cs-identifier" | - And the graph projection is fully up to date And I am in workspace "live" And the command CreateRootNodeAggregateWithNode is executed with payload: | Key | Value | @@ -33,7 +32,6 @@ Feature: As a user of the CR I want to export the event stream | parentNodeAggregateId | "lady-eleonode-rootford" | | nodeName | "child-document" | | nodeAggregateClassification | "regular" | - And the graph projection is fully up to date Scenario: Export the event stream Then I expect exactly 3 events to be published on stream with prefix "ContentStream:cs-identifier"