public function setUp() { $this->converter = new \TYPO3\FLOW3\Property\TypeConverter\PersistentObjectConverter(); $this->mockReflectionService = $this->getMock('TYPO3\\FLOW3\\Reflection\\ReflectionService'); $this->converter->injectReflectionService($this->mockReflectionService); $this->mockPersistenceManager = $this->getMock('TYPO3\\FLOW3\\Persistence\\PersistenceManagerInterface'); $this->converter->injectPersistenceManager($this->mockPersistenceManager); $this->mockObjectManager = $this->getMock('TYPO3\\FLOW3\\Object\\ObjectManagerInterface'); $this->converter->injectObjectManager($this->mockObjectManager); }