Commit 74a4e307 authored by eileen's avatar eileen 🎱 Committed by GitHub

Merge pull request #9911 from seamuslee001/CRM-15505-test-improvement

CRM-15505 Lock in to ensure that state_province is used to mean the a…
parents a1fdbc22 949cb2d0
......@@ -14,6 +14,7 @@ class CRM_Contact_BAO_QueryStateNameTest extends CiviUnitTestCase {
*/
public function testStateName() {
$state_name = 'Norfolk';
$state_abbreviation = 'NFK';
$create_params = array(
'contact_type' => 'Individual',
'first_name' => 'John',
......@@ -30,8 +31,9 @@ class CRM_Contact_BAO_QueryStateNameTest extends CiviUnitTestCase {
'sequential' => 1,
);
$get_res = civicrm_api3('Contact', 'get', $get_params);
$this->assertEquals($state_name, $get_res['values'][0]['state_province_name']);
// Lock in that state_provice should equal that of the abbreviation.
$this->assertEquals($state_abbreviation, $get_res['values'][0]['state_province']);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment