public function testTransformValue()
 {
     $field = $this->prophesize('\\StoutLogic\\AcfBuilder\\FieldBuilder');
     $field->getKey()->willReturn('field_key');
     $builder = $this->prophesize('\\StoutLogic\\AcfBuilder\\FieldsBuilder');
     $builder->getField('value')->willReturn($field->reveal());
     $transform = new Transform\ConditionalField($builder->reveal());
     $this->assertSame('field_key', $transform->transformValue('value'));
 }
 /**
  * Replace field values of a ConditionalBuilder with the proper keys using
  * the ConditionalField Transform.
  *
  * @param  array $value
  * @return array Transformed config array
  */
 public function transformValue($value)
 {
     $conditionalFieldTransform = new ConditionalField($this->getBuilder());
     return $conditionalFieldTransform->transform($value);
 }