Skip to content

Commit

Permalink
TASK: Add sanity check assertion after setting node properties a coup…
Browse files Browse the repository at this point in the history
…le of times
  • Loading branch information
mhsdesign committed Nov 20, 2024
1 parent 6e5b565 commit 8967ead
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ public function whileANodesArWrittenOnLive(): void

$this->log('writing finished');
Assert::assertTrue(true, 'No exception was thrown ;)');

$subgraph = $this->contentRepository->getContentGraph(WorkspaceName::forLive())->getSubgraph(DimensionSpacePoint::createWithoutDimensions(), VisibilityConstraints::withoutRestrictions());
$node = $subgraph->findNodeById(NodeAggregateId::fromString('nody-mc-nodeface'));
Assert::assertNotNull($node);
Assert::assertSame($node->getProperty('title'), 'changed-title-50');
}

/**
Expand Down

0 comments on commit 8967ead

Please sign in to comment.