コード例 #1
0
 /**
  * Tests whether fields can be added to a palette after a not existing elements.
  *
  * @test
  * @see t3lib_extMgm::addFieldsToPalette()
  */
 public function canAddFieldsToPaletteAfterNotExistingOnes()
 {
     $table = uniqid('tx_coretest_table');
     $GLOBALS['TCA'] = $this->generateTCAForTable($table);
     \TYPO3\CMS\Core\Extension\ExtensionManager::addFieldsToPalette($table, 'paletteA', 'newA, newA, newB, fieldX', 'after:' . uniqid('notExisting'));
     $this->assertEquals('fieldX, fieldY, newA, newB', $GLOBALS['TCA'][$table]['palettes']['paletteA']['showitem']);
 }