public function testFallbackClosure()
{
$closureCalled = false;
$pm = PaletteManipulator::create()->addField('bar', 'foo', PaletteManipulator::POSITION_AFTER, function ($config, $action, $skipLegends) use(&$closureCalled) {
$closureCalled = true;
$this->assertInternalType('array', $config);
$this->assertInternalType('array', $action);
$this->assertInternalType('bool', $skipLegends);
$this->assertArrayHasKey('fields', $action);
$this->assertArrayHasKey('parents', $action);
$this->assertArrayHasKey('position', $action);
});
$pm->applyToString('baz');
$this->assertTrue($closureCalled);
}