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

iShouldHaveOneNode() public method

public iShouldHaveOneNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
return Neos\ContentRepository\Domain\Model\NodeInterface
    public function iShouldHaveOneNode()
    {
        if ($this->isolated === true) {
            $this->callStepInSubProcess(__METHOD__);
        } else {
            Assert::assertCount(1, $this->currentNodes);
            return $this->currentNodes[0];
        }
    }