public function canExecuteClearAllCacheCommandAndPassToProvidersForEveryTcaTable()
{
$instance = $this->getInstance();
$mockedFluxService = $this->getMock('FluidTYPO3\\Flux\\Service\\FluxService', array('resolveConfigurationProviders'));
$mockedProvider = $this->getMock('FluidTYPO3\\Flux\\Provider\\Provider', array('clearCacheCommand'));
$expectedExecutions = count($GLOBALS['TCA']);
$mockedProvider->expects($this->exactly($expectedExecutions))->method('clearCacheCommand')->with('all');
$mockedFluxService->expects($this->atLeastOnce())->method('resolveConfigurationProviders')->will($this->returnValue(array($mockedProvider)));
ObjectAccess::setProperty($instance, 'configurationService', $mockedFluxService, TRUE);
$instance->clearCacheCommand('all');
}