コード例 #1
0
 /**
  * @expectedException App_MigrationTool_TemplatesTo20_Exception
  */
 public function testUpgradeTariffPlanFailZoneDoesNotExist()
 {
     $relations = array();
     $zonePlan = App_MigrationTool_TemplatesTo20_ServiceTariffUtils::createZonePlan($this->_zoneData, $this->_zoneNamesData, $relations);
     $data = Zend_Json::decode($this->_oldTemplateData);
     $data['origVoice'][0]['zoneId'] = "25";
     $template = new TemplateModel($data);
     $template->organizationId = self::PROVIDER_ENABLER_ORG_ID;
     $tariffPlan = App_MigrationTool_TemplatesTo20_ServiceTariffUtils::upgradeTariffPlan($template, $zonePlan, $relations);
 }