public function testFlexibleContent()
 {
     $builder = new FieldsBuilder('page_content');
     $builder->addFlexibleContent('sections')->addLayout('banner')->addText('title')->addWysiwyg('content')->addLayout('content_columns')->addRepeater('columns', ['min' => 1, 'max' => 2])->addWysiwyg('content');
     $expectedConfig = ['fields' => [['key' => 'field_page_content_sections', 'name' => 'sections', 'label' => 'Sections', 'type' => 'flexible_content', 'button_label' => 'Add Section', 'layouts' => [['key' => 'field_page_content_sections_banner', 'name' => 'banner', 'label' => 'Banner', 'display' => 'block', 'sub_fields' => [['key' => 'field_page_content_sections_banner_title', 'name' => 'title', 'type' => 'text'], ['key' => 'field_page_content_sections_banner_content', 'name' => 'content', 'type' => 'wysiwyg']]], ['key' => 'field_page_content_sections_content_columns', 'name' => 'content_columns', 'label' => 'Content Columns', 'display' => 'block', 'sub_fields' => [['key' => 'field_page_content_sections_content_columns_columns', 'name' => 'columns', 'type' => 'repeater', 'min' => 1, 'max' => 2, 'sub_fields' => [['key' => 'field_page_content_sections_content_columns_columns_content', 'name' => 'content', 'type' => 'wysiwyg']]]]]]]]];
     $this->assertArraySubset($expectedConfig, $builder->build());
 }