public function testTransformValue()
 {
     $builder = $this->prophesize('\\StoutLogic\\AcfBuilder\\FieldsBuilder');
     $builder->getName()->willReturn('Fields Builder Name');
     $transform = new Transform\FlexibleContentLayout($builder->reveal());
     $expected = ['sub_fields' => 'fields', 'label' => 'title'];
     $actual = $transform->transform(['fields' => 'fields', 'title' => 'title']);
     $this->assertSame($expected, $actual);
 }
 /**
  * Apply transformations to a layout
  * @param  array $layout Layout configuration array
  * @return array Transformed layout configuration array
  */
 private function transformLayout($layout)
 {
     $layoutTransform = new Transform\FlexibleContentLayout($this);
     $namespaceTransform = new Transform\NamespaceFieldKey($this);
     return $namespaceTransform->transform($layoutTransform->transform($layout));
 }