Neos\Flow\Tests\Unit\Property\TypeConverter\PersistentObjectConverterTest::convertFromShouldThrowExceptionIfObjectNeedsToBeModifiedButConfigurationIsNotSet PHP Method

convertFromShouldThrowExceptionIfObjectNeedsToBeModifiedButConfigurationIsNotSet() public method

    public function convertFromShouldThrowExceptionIfObjectNeedsToBeModifiedButConfigurationIsNotSet()
    {
        $identifier = '550e8400-e29b-11d4-a716-446655440000';
        $object = new \stdClass();
        $object->someProperty = 'asdf';
        $source = ['__identity' => $identifier, 'foo' => 'bar'];
        $this->mockPersistenceManager->expects($this->once())->method('getObjectByIdentifier')->with($identifier)->will($this->returnValue($object));
        $this->converter->convertFrom($source, 'MySpecialType', ['foo' => 'bar']);
    }