Neos\Flow\Tests\Unit\Validation\Validator\UniqueEntityValidatorTest::validatorThrowsExceptionIfSetupPropertiesAreNotPresentInActualClass PHP Method

validatorThrowsExceptionIfSetupPropertiesAreNotPresentInActualClass() public method

    public function validatorThrowsExceptionIfSetupPropertiesAreNotPresentInActualClass()
    {
        $this->prepareMockExpectations();
        $this->inject($this->validator, 'options', ['identityProperties' => ['propertyWhichDoesntExist']]);
        $this->classSchema->expects($this->once())->method('hasProperty')->with('propertyWhichDoesntExist')->will($this->returnValue(false));
        $this->validator->validate(new \StdClass());
    }