When using magic method for countryLimit, it's difficult to directly modify
the array. It's easier to replace the array as a whole.
$this->_apiversion = 3;
parent::setUp();
$config = CRM_Core_Config::singleton();
- $config->countryLimit[1] = 1013;
- $config->stateLimit[1] = 1013;
+ $countryLimit = $config->countryLimit;
+ $countryLimit[1] = 1013;
+ $config->countryLimit = $countryLimit;
+
$this->createLoggedInUser();
$this->_membershipTypeID = $this->membershipTypeCreate();
}