public function testConditionalLogic()
 {
     $builder = new FieldsBuilder('fields');
     $builder->addRadio('color')->addChoices('red', 'blue', 'green', 'other')->addRadio('number', ['key' => 'num'])->addChoices('one', 'two', 'three', 'other')->addText('other_value')->conditional('color', '==', 'other')->and('day', '!=', 'tue')->or('number', '==', 'other')->and('number', '!=', 'two')->addRadio('day', ['key' => 'day_of_week'])->addChoices('mon', 'tue', 'wed', 'thu', 'other')->addText('other_day')->conditional('day', '==', 'other');
     $expectedConfig = ['fields' => [['key' => 'field_fields_color', 'name' => 'color'], ['key' => 'field_fields_num', 'name' => 'number'], ['name' => 'other_value', 'conditional_logic' => [[['field' => 'field_fields_color', 'operator' => '==', 'value' => 'other'], ['field' => 'field_fields_day_of_week', 'operator' => '!=', 'value' => 'tue']], [['field' => 'field_fields_num', 'operator' => '==', 'value' => 'other'], ['field' => 'field_fields_num', 'operator' => '!=', 'value' => 'two']]]], ['name' => 'day'], ['name' => 'other_day', 'conditional_logic' => [[['field' => 'field_fields_day_of_week', 'operator' => '==', 'value' => 'other']]]]]];
     $this->assertArraySubset($expectedConfig, $builder->build());
 }