Contao\CoreBundle\Test\DataContainer\PaletteManipulatorTest::testApplyToDcaSubpalette PHP Method

testApplyToDcaSubpalette() public method

Tests applying the changes to a DCA subpalette.
    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']);
    }