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

theNodeShouldHaveAProperty() public method

public theNodeShouldHaveAProperty ( $not, $propertyName )
    public function theNodeShouldHaveAProperty($not, $propertyName)
    {
        if ($this->isolated === true) {
            $this->callStepInSubProcess(__METHOD__, sprintf(' %s %s %s %s', 'string', escapeshellarg($propertyName), 'string', escapeshellarg($propertyValue)));
        } else {
            $currentNode = $this->iShouldHaveOneNode();
            $expected = false;
            if (empty($not)) {
                $expected = true;
            }
            Assert::assertEquals($expected, $currentNode->hasProperty($propertyName));
        }
    }