public function testManipulateWizardItemsCallsExpectedMethodSequenceWithProvidersWithColPosWithoutRelativeElement()
{
$GLOBALS['BE_USER'] = new BackendUserAuthentication();
/** @var WizardItemsHookSubscriber $instance */
$instance = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager')->get('FluidTYPO3\\Fluidcontent\\Hooks\\WizardItemsHookSubscriber');
/** @var ConfigurationService|\PHPUnit_Framework_MockObject_MockObject $configurationService */
$configurationService = $this->getMock('FluidTYPO3\\Fluidcontent\\Service\\ConfigurationService', array('writeCachedConfigurationIfMissing', 'resolveConfigurationProviders'));
/** @var WorkspacesAwareRecordService|\PHPUnit_Framework_MockObject_MockObject $recordService */
$recordService = $this->getMock('FluidTYPO3\\Flux\\Service\\WorkspacesAwareRecordService', array('getSingle'));
$record = array('uid' => 0);
$provider1 = $this->getMockProvider($record);
$provider2 = $this->getMockProvider($record);
$provider3 = $this->getMockProvider($record, FALSE);
$configurationService->expects($this->once())->method('writeCachedConfigurationIfMissing');
$configurationService->expects($this->once())->method('resolveConfigurationProviders')->willReturn(array($provider1, $provider2, $provider3));
$recordService->expects($this->once())->method('getSingle')->willReturn($record);
$instance->injectConfigurationService($configurationService);
$instance->injectRecordService($recordService);
$parent = $this->getMock(NewContentElementController::class, array('init'), array(), '', FALSE);
$parent->colPos = 1;
$items = array();
$instance->manipulateWizardItems($items, $parent);
}