Merge pull request #180 from stof/fix_custom_data
Unset the custom-data node when it is empty
This commit is contained in:
@@ -84,6 +84,14 @@ class SauceLabsFactory extends Selenium2Factory
|
||||
->booleanNode('capture-html')->end()
|
||||
->booleanNode('disable-popup-handler')->end()
|
||||
->end()
|
||||
->validate()
|
||||
->ifTrue(function ($v) {return empty($v['custom-data']);})
|
||||
->then(function ($v) {
|
||||
unset ($v['custom-data']);
|
||||
|
||||
return $v;
|
||||
})
|
||||
->end()
|
||||
;
|
||||
|
||||
return $node;
|
||||
|
||||
Reference in New Issue
Block a user