public function testApplyToDcaSubpalette()
{
$pm = PaletteManipulator::create()->addField(['foo', 'bar'], 'lastname');
$GLOBALS['TL_DCA']['tl_test']['subpalettes']['name'] = 'firstname,lastname';
$pm->applyToSubpalette('name', 'tl_test');
$this->assertEquals('firstname,lastname,foo,bar', $GLOBALS['TL_DCA']['tl_test']['subpalettes']['name']);
}