Neos\ContentRepository\Tests\Behavior\Features\Bootstrap\NodeOperationsTrait::iGetANodeByPathWithTheFollowingContext PHP Method

iGetANodeByPathWithTheFollowingContext() public method

public iGetANodeByPathWithTheFollowingContext ( $path, $table )
    public function iGetANodeByPathWithTheFollowingContext($path, $table)
    {
        if ($this->isolated === true) {
            $this->callStepInSubProcess(__METHOD__, sprintf(' %s %s %s %s', 'string', escapeshellarg($path), escapeshellarg(\Neos\Flow\Tests\Functional\Command\TableNode::class), escapeshellarg(json_encode($table->getHash()))));
        } else {
            $rows = $table->getHash();
            $context = $this->getContextForProperties($rows[0]);
            if ($context->getWorkspace() === null) {
                // FIXME: Adjust to changed getWorkspace() method -> workspace needs to be created in another way
                $context->getWorkspace(true);
                $this->objectManager->get(\Neos\Flow\Persistence\PersistenceManagerInterface::class)->persistAll();
                $this->resetNodeInstances();
                $context = $this->getContextForProperties($rows[0]);
            }
            $node = $context->getNode($path);
            if ($node !== null) {
                $this->currentNodes = array($node);
            } else {
                $this->currentNodes = array();
            }
        }
    }