protected function setupPropertyMapperAndSetValue() { $this->mockPropertyMapper->expects($this->once())->method('convert')->with('someRawValue', 'string', $this->mockConfiguration)->will($this->returnValue('convertedValue')); $this->mockPropertyMapper->expects($this->once())->method('getMessages')->will($this->returnValue(new \TYPO3\Flow\Error\Result())); return $this->simpleValueArgument->setValue('someRawValue'); }