/** * @param \TYPO3\CMS\Extbase\Service\TypeHandlingService $typeHandlingService * @return void */ public function injectTypeHandlingService(\TYPO3\CMS\Extbase\Service\TypeHandlingService $typeHandlingService) { $this->typeHandlingService = $typeHandlingService; $this->dataType = $this->typeHandlingService->normalizeType($this->dataType); }
/** * @test * @dataProvider normalizeTypes * @author Karsten Dambekalns <*****@*****.**> * @param mixed $type * @param mixed $normalized */ public function normalizeTypesReturnsNormalizedType($type, $normalized) { $this->assertEquals($this->typeHandlingService->normalizeType($type), $normalized); }