Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich authored and mhsdesign committed Oct 1, 2024
1 parent 1348679 commit 01a06fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace Neos\ContentRepository\TestSuite\Behavior\Features\Bootstrap;

use Neos\ContentRepository\Core\ContentGraphAdapter;
use Neos\ContentRepository\Core\ContentRepositoryReadModel;
use Neos\ContentRepository\Core\ContentRepository;
use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePoint;
use Neos\ContentRepository\Core\Projection\ContentGraph\ContentSubgraphInterface;
Expand Down Expand Up @@ -125,9 +125,9 @@ public function visibilityConstraintsAreSetTo(string $restrictionType): void

public function getCurrentSubgraph(): ContentSubgraphInterface
{
$contentGraphAdapter = $this->currentContentRepository->projectionState(ContentGraphAdapter::class);
$contentRepositoryReadModel = $this->currentContentRepository->projectionState(ContentRepositoryReadModel::class);

return $contentGraphAdapter->getContentGraphByWorkspaceName($this->currentWorkspaceName)->getSubgraph(
return $contentRepositoryReadModel->getContentGraphByWorkspaceName($this->currentWorkspaceName)->getSubgraph(
$this->currentDimensionSpacePoint,
$this->currentVisibilityConstraints
);
Expand Down
7 changes: 3 additions & 4 deletions Classes/Behavior/Features/Bootstrap/ProjectedNodeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

use Behat\Gherkin\Node\TableNode;
use GuzzleHttp\Psr7\Uri;
use Neos\ContentRepository\Core\ContentGraphAdapter;
use Neos\ContentRepository\Core\ContentRepositoryReadModel;
use Neos\ContentRepository\Core\Feature\SubtreeTagging\Dto\SubtreeTag;
use Neos\ContentRepository\Core\NodeType\NodeTypeName;
use Neos\ContentRepository\Core\Projection\ContentGraph\ContentSubgraphInterface;
Expand All @@ -33,7 +33,6 @@
use Neos\ContentRepository\Core\SharedModel\Node\NodeName;
use Neos\ContentRepository\Core\SharedModel\Node\PropertyName;
use Neos\ContentRepository\Core\SharedModel\Workspace\Workspace;
use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceFilter;
use Neos\ContentRepository\Core\Tests\Behavior\Fixtures\DayOfWeek;
use Neos\ContentRepository\Core\Tests\Behavior\Fixtures\PostalAddress;
use Neos\ContentRepository\Core\Tests\Behavior\Fixtures\PriceSpecification;
Expand Down Expand Up @@ -82,8 +81,8 @@ public function iGetTheNodeAtPath(string $serializedNodePath): void
public function iExpectANodeIdentifiedByXToExistInTheContentGraph(string $serializedNodeDiscriminator): void
{
$nodeDiscriminator = NodeDiscriminator::fromShorthand($serializedNodeDiscriminator);
$contentGraphAdapter = $this->currentContentRepository->projectionState(ContentGraphAdapter::class);
$contentGraphAdapter->forgetInstances();
$contentRepositoryReadModel = $this->currentContentRepository->projectionState(ContentRepositoryReadModel::class);
$contentRepositoryReadModel->forgetInstances();
$matchingWorkspace = $this->currentContentRepository->getWorkspaces()->find(
static fn (Workspace $workspace) => $workspace->currentContentStreamId->equals($nodeDiscriminator->contentStreamId)
);
Expand Down

0 comments on commit 01a06fb

Please sign in to comment.