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

testMissingDcaPalette() public method

Tests applying changes to a missing palette.
    public function testMissingDcaPalette()
    {
        $pm = PaletteManipulator::create()->addLegend('foobar_legend', '', PaletteManipulator::POSITION_APPEND)->addField(['foo', 'bar'], 'foobar_legend', PaletteManipulator::POSITION_APPEND);
        // Make sure the palette is not here (for whatever reason another test might have set it)
        unset($GLOBALS['TL_DCA']['tl_test']['palettes']['default']);
        $pm->applyToPalette('default', 'tl_test');
    }