|
24 | 24 | */ |
25 | 25 | final class TrackableLeadFormMappingTest extends FacebookWordpressTestBase { |
26 | 26 |
|
27 | | - /** |
28 | | - * When a form field is mapped to a composite Lead parameter (e.g. an |
29 | | - * address), apply_field_mapping() should expand it into its sub-parameters |
30 | | - * (city/state/zip/country) rather than assigning the raw composite value. |
31 | | - * |
32 | | - * This is not implemented yet: apply_field_mapping() currently does a flat |
33 | | - * assignment, and composite targets aren't in VALID_LEAD_PARAMETERS. It is |
34 | | - * blocked on the mapping UI, which will define how composite fields declare |
35 | | - * their sub-field targets. See the TODO(mapping-UI) note in |
36 | | - * TrackableLeadFormIntegrationBase::apply_field_mapping(). |
37 | | - * |
38 | | - * Intended assertions once implemented: mapping an 'address' form field |
39 | | - * should yield lead data with 'city', 'state', 'zip', and 'country' keys. |
40 | | - * |
41 | | - * @return void |
42 | | - */ |
43 | | - public function testCompositeAddressMappingIsExpanded() { |
44 | | - $this->markTestIncomplete( |
45 | | - 'Composite (address) field mapping breakdown is pending the mapping ' |
46 | | - . 'UI. See TrackableLeadFormIntegrationBase::apply_field_mapping ' |
47 | | - . 'TODO(mapping-UI).' |
48 | | - ); |
49 | | - } |
| 27 | + /** |
| 28 | + * When a form field is mapped to a composite Lead parameter (e.g. an |
| 29 | + * address), apply_field_mapping() should expand it into its sub-parameters |
| 30 | + * (city/state/zip/country) rather than assigning the raw composite value. |
| 31 | + * |
| 32 | + * This is not implemented yet: apply_field_mapping() currently does a flat |
| 33 | + * assignment, and composite targets aren't in VALID_LEAD_PARAMETERS. It is |
| 34 | + * blocked on the mapping UI, which will define how composite fields declare |
| 35 | + * their sub-field targets. See the TODO(mapping-UI) note in |
| 36 | + * TrackableLeadFormIntegrationBase::apply_field_mapping(). |
| 37 | + * |
| 38 | + * Intended assertions once implemented: mapping an 'address' form field |
| 39 | + * should yield lead data with 'city', 'state', 'zip', and 'country' keys. |
| 40 | + * |
| 41 | + * @return void |
| 42 | + */ |
| 43 | + public function testCompositeAddressMappingIsExpanded() { |
| 44 | + $this->markTestIncomplete( |
| 45 | + 'Composite (address) field mapping breakdown is pending the mapping ' |
| 46 | + . 'UI. See TrackableLeadFormIntegrationBase::apply_field_mapping ' |
| 47 | + . 'TODO(mapping-UI).' |
| 48 | + ); |
| 49 | + } |
50 | 50 | } |
0 commit comments