diff --git a/CRM/Core/BAO/County.php b/CRM/Core/BAO/County.php new file mode 100644 index 000000000000..099aa1e0e2e2 --- /dev/null +++ b/CRM/Core/BAO/County.php @@ -0,0 +1,35 @@ +setValues([ + 'name' => 'Farnell', + 'abbreviation' => '', + 'state_province_id' => 1640, + ])->execute()->first()['id']; $childKey = $this->getRelationships()['Child of']['id'] . '_a_b'; $addressCustomGroupID = $this->createCustomGroup(['extends' => 'Address', 'name' => 'Address']); $contactCustomGroupID = $this->createCustomGroup(['extends' => 'Contact', 'name' => 'Contact']); @@ -1338,6 +1344,7 @@ public function testImportCountryStateCounty(): void { $this->importCSV($csv, $mapper); $contacts = $this->getImportedContacts(); foreach ($contacts as $contact) { + $this->assertEquals($countyID, $contact['address'][0]['county_id']); $this->assertEquals(1013, $contact['address'][0]['country_id']); $this->assertEquals(1640, $contact['address'][0]['state_province_id']); }