Skip to content

Commit

Permalink
Update test for latest iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed May 26, 2022
1 parent 0e338ad commit 11ed05c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/phpunit/CRM/Contact/Import/Form/MapFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,31 +237,31 @@ public function mapFieldDataProvider(): array {
return [
[
['name' => 'first_name', 'contact_type' => 'Individual', 'column_number' => 0],
"cj('#mapper_0_1').hide();
cj('#mapper_0_2').hide();
cj('#mapper_0_3').hide();\n",
"CRM.$('#mapper_0_1').hide();
CRM.$('#mapper_0_2').hide();
CRM.$('#mapper_0_3').hide();\n",
['mapper[0]' => ['first_name', 0, NULL]],
],
[
['name' => 'phone', 'contact_type' => 'Individual', 'column_number' => 0, 'phone_type_id' => 1, 'location_type_id' => 2],
"cj('#mapper_0_3').hide();\n",
"CRM.$('#mapper_0_3').hide();\n",
['mapper[0]' => ['phone', 2, 1]],
],
[
['name' => 'im', 'contact_type' => 'Individual', 'column_number' => 0, 'im_provider_id' => 1, 'location_type_id' => 2],
"cj('#mapper_0_3').hide();\n",
"CRM.$('#mapper_0_3').hide();\n",
['mapper[0]' => ['im', 2, 1]],
],
[
['name' => 'url', 'contact_type' => 'Individual', 'column_number' => 0, 'website_type_id' => 1],
"cj('#mapper_0_2').hide();
cj('#mapper_0_3').hide();\n",
"CRM.$('#mapper_0_2').hide();
CRM.$('#mapper_0_3').hide();\n",
['mapper[0]' => ['url', 1]],
],
[
// Yes, the relationship mapping really does use url whereas non relationship uses website because... legacy
['name' => 'url', 'contact_type' => 'Individual', 'column_number' => 0, 'website_type_id' => 1, 'relationship_type_id' => 1, 'relationship_direction' => 'a_b'],
"cj('#mapper_0_3').hide();\n",
"CRM.$('#mapper_0_3').hide();\n",
['mapper[0]' => ['1_a_b', 'url', 1]],
],
[
Expand All @@ -271,9 +271,9 @@ public function mapFieldDataProvider(): array {
],
[
['name' => 'do_not_import', 'contact_type' => 'Individual', 'column_number' => 0],
"cj('#mapper_0_1').hide();
cj('#mapper_0_2').hide();
cj('#mapper_0_3').hide();\n",
"CRM.$('#mapper_0_1').hide();
CRM.$('#mapper_0_2').hide();
CRM.$('#mapper_0_3').hide();\n",
['mapper[0]' => []],
],
];
Expand Down

0 comments on commit 11ed05c

Please sign in to comment.