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

testAfterField() public method

Tests adding a field after another field.
public testAfterField ( )
    public function testAfterField()
    {
        $pm = PaletteManipulator::create()->addField('bar', 'foo', PaletteManipulator::POSITION_AFTER);
        $this->assertEquals('{config_legend},foo,bar', $pm->applyToString('{config_legend},foo'));
        $this->assertEquals('{config_legend},baz,bar', $pm->applyToString('{config_legend},baz'));
    }