/**
  * @test
  */
 public function isMakeCategorizableAvailableInRegistryWithSpecifictField()
 {
     $extensionKey = uniqid('extension');
     $tableName = uniqid('table');
     $fieldName = uniqid('field');
     $GLOBALS['TCA'][$tableName] = array('ctrl' => array(), 'columns' => array());
     $registryMock = $this->getMock('TYPO3\\CMS\\Core\\Category\\CategoryRegistry', array('add'));
     $registryMock->expects($this->once())->method('add')->with($extensionKey, $tableName, $fieldName);
     \TYPO3\CMS\Core\Utility\GeneralUtility::setSingletonInstance('TYPO3\\CMS\\Core\\Category\\CategoryRegistry', $registryMock);
     \TYPO3\CMS\Core\Extension\ExtensionManager::makeCategorizable($extensionKey, $tableName, $fieldName);
     $this->assertNotEmpty($GLOBALS['TCA'][$tableName]['columns'][$fieldName]);
 }