Neos\ContentRepository\Tests\Behavior\Features\Bootstrap\NodeOperationsTrait::iAdoptTheNodeToTheFollowingContext PHP Метод

iAdoptTheNodeToTheFollowingContext() публичный Метод

public iAdoptTheNodeToTheFollowingContext ( $recursive, $table )
    public function iAdoptTheNodeToTheFollowingContext($recursive, $table)
    {
        if ($this->isolated === true) {
            $this->callStepInSubProcess(__METHOD__, sprintf(' %s %s %s %s', 'string', escapeshellarg($recursive), escapeshellarg(\Neos\Flow\Tests\Functional\Command\TableNode::class), escapeshellarg(json_encode($table->getHash()))));
        } else {
            $rows = $table->getHash();
            $context = $this->getContextForProperties($rows[0]);
            $currentNode = $this->iShouldHaveOneNode();
            $this->currentNodes = array($context->adoptNode($currentNode, $recursive !== ''));
        }
    }