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

testMissingDcaSubpalette() public method

Tests applying changes to a missing subpalette.
    public function testMissingDcaSubpalette()
    {
        $pm = PaletteManipulator::create()->addField(['foo', 'bar'], 'lastname');
        // Make sure the palette is not here (for whatever reason another test might have set it)
        unset($GLOBALS['TL_DCA']['tl_test']['subpalettes']['name']);
        $pm->applyToSubpalette('name', 'tl_test');
    }