public function setUp() { parent::setUp(); $this->_spMapper = \Application\Model\Mapper\ServicePackMapper::getInstance(); $this->_lfMapper = \Application\Model\Mapper\LifeCycleMapper::getInstance(); $this->_restMapper = \Application\Model\Mapper\RestrictionMapper::getInstance(); $this->_tflcMapper = \Application\Model\Mapper\TariffPlanLifeCycleMapper::getInstance(); $this->_tfservMapper = \Application\Model\Mapper\TariffPlanServicesMapper::getInstance(); $this->_servicePackData = array("name" => "SPTesting" . "-" . microtime(true), "description" => "A service pack for integration test", "currency" => self::CURRENCY, "changeCost" => 3000, "whiteList" => array("34696*", "34697*", "34695777888"), "blackList" => array("34666*", "34677*", "34655777888"), "roamingList" => array("34666*", "34677*", "34655777888"), "listsLocked" => true); $this->_lifeCycleData = array("name" => "LifeCycle" . "-" . microtime(true), "description" => "LifeCycle for integration tests", "status" => array(array('status' => LifeCycleModel::STATUS_INACTIVE_NEW, 'timer' => 100, 'transitions' => array(array('destinationStatus' => LifeCycleModel::STATUS_TEST, 'manual' => true, 'automatic' => false), array('destinationStatus' => LifeCycleModel::STATUS_SUSPENDED, 'manual' => true, 'automatic' => true, 'automaticInfo' => array('timerCause' => true, 'firstUseCause' => false, 'voucherCause' => false)))), array('status' => LifeCycleModel::STATUS_TEST, 'vouchers' => array('voice' => array('home' => 234)), 'transitions' => array(array('destinationStatus' => LifeCycleModel::STATUS_ACTIVATION_READY, 'manual' => true, 'automatic' => true, 'automaticInfo' => array('timerCause' => false, 'firstUseCause' => false, 'voucherCause' => true, 'voucherCauseInfo' => array('type' => Model\LifeCycle\VoucherCauseInfoModel::CAUSE_TYPE_ANY, 'vouchers' => array(Model\LifeCycle\VoucherCauseInfoModel::VOUCHER_TYPE_VOICE_HOME)))), array('destinationStatus' => LifeCycleModel::STATUS_SUSPENDED, 'manual' => true, 'automatic' => false))), array('status' => LifeCycleModel::STATUS_ACTIVATION_READY, 'transitions' => array(array('destinationStatus' => LifeCycleModel::STATUS_ACTIVE, 'manual' => false, 'automatic' => true, 'automaticInfo' => array('timerCause' => false, 'firstUseCause' => true, 'voucherCause' => false)), array('destinationStatus' => LifeCycleModel::STATUS_SUSPENDED, 'manual' => true, 'automatic' => false))), array('status' => LifeCycleModel::STATUS_ACTIVE, 'transitions' => array(array('destinationStatus' => LifeCycleModel::STATUS_DEACTIVATED, 'manual' => true, 'automatic' => false), array('destinationStatus' => LifeCycleModel::STATUS_SUSPENDED, 'manual' => true, 'automatic' => false))), array('status' => LifeCycleModel::STATUS_DEACTIVATED, 'transitions' => array(array('destinationStatus' => LifeCycleModel::STATUS_ACTIVE, 'manual' => true, 'automatic' => false), array('destinationStatus' => LifeCycleModel::STATUS_SUSPENDED, 'manual' => true, 'automatic' => false))), array('status' => LifeCycleModel::STATUS_SUSPENDED, 'transitions' => array(array('destinationStatus' => LifeCycleModel::STATUS_DEACTIVATED, 'manual' => true, 'automatic' => false), array('destinationStatus' => LifeCycleModel::STATUS_ACTIVE, 'manual' => true, 'automatic' => false), array('destinationStatus' => LifeCycleModel::STATUS_ACTIVATION_READY, 'manual' => true, 'automatic' => false), array('destinationStatus' => LifeCycleModel::STATUS_TEST, 'manual' => true, 'automatic' => false), array('destinationStatus' => LifeCycleModel::STATUS_INACTIVE_NEW, 'manual' => true, 'automatic' => false), array('destinationStatus' => LifeCycleModel::STATUS_RETIRED, 'manual' => true, 'automatic' => false))), array('status' => LifeCycleModel::STATUS_RETIRED))); $this->_restrictionsData = array('name' => "RestTest" . "-" . microtime(true), 'description' => "Restrinctions for integration test", 'operator' => array(self::OPERATOR), 'voice' => array('mo' => array('home' => true, 'roaming' => true, 'international' => true), 'mt' => array('home' => true, 'roaming' => true, 'international' => true)), 'sms' => array('mo' => array('home' => true, 'roaming' => true, 'international' => true), 'mt' => array('home' => true, 'roaming' => true, 'international' => true)), 'data' => array('home' => false, 'roaming' => false)); $this->_lifeCycleTariffPlanData = array('name' => "LCTPlantesting" . "-" . microtime(true), 'description' => "LifeCycle TariffPlan for integration tests", 'status' => array(array('status' => LifeCycleModel::STATUS_ACTIVE, 'cost' => 20), array('status' => LifeCycleModel::STATUS_DEACTIVATED, 'cost' => 120)), 'transitions' => array(array('statusStart' => LifeCycleModel::STATUS_INACTIVE_NEW, 'statusFinal' => LifeCycleModel::STATUS_ACTIVATION_READY, 'cost' => 12), array('statusStart' => LifeCycleModel::STATUS_INACTIVE_NEW, 'statusFinal' => LifeCycleModel::STATUS_TEST, 'cost' => 12), array('statusStart' => LifeCycleModel::STATUS_INACTIVE_NEW, 'statusFinal' => LifeCycleModel::STATUS_ACTIVATION_PENDANT, 'cost' => 12), array('statusStart' => LifeCycleModel::STATUS_DEACTIVATED, 'statusFinal' => LifeCycleModel::STATUS_ACTIVE, 'cost' => 12), array('statusStart' => LifeCycleModel::STATUS_SUSPENDED, 'statusFinal' => LifeCycleModel::STATUS_RETIRED, 'cost' => 12))); $this->_servicesTariffPlanData = array('name' => "STPlanTesting" . "-" . microtime(true), 'description' => "Services TariffPlan for integration tests", 'defaultData' => array("t2N" => 7, "t2Q" => 8, 'pool' => true), 'data' => array(array('zoneId' => self::ZONE_ID_2, 'destinationId' => self::DESTINATION_ID_2, 'n1' => 1, "n2" => 2, "n3" => 3, "n4" => 4, "n5" => 5, "q1" => 6, "t2N" => 7, "t2Q" => 8, "t4N" => 9, "t4Q" => 10, "t6N" => 11, "t6Q" => 12, 'pool' => true)), 'defaultOrigVoice' => array("t2N" => 7, "t2Q" => 8, 'pool' => true), 'origVoice' => array(array('zoneId' => self::ZONE_ID_2, 'destinationId' => self::DESTINATION_ID_2, "t2N" => 7, "t2Q" => 8, 'pool' => true)), 'defaultTermVoice' => array("t2N" => 7, "t2Q" => 8, 'pool' => true), 'termVoice' => array(array('zoneId' => self::ZONE_ID_1, 'destinationId' => self::DESTINATION_ID_1, "t2N" => 7, "t2Q" => 8, 'pool' => true)), 'defaultSms' => array("t2N" => 1, "t2Q" => 2, 'pool' => true), 'sms' => array(array('zoneId' => self::ZONE_ID_2, 'destinationId' => self::DESTINATION_ID_2, "t2N" => 7, "t2Q" => 8, 'pool' => true))); }
protected function setUp() { parent::setUp(); $this->_mapper = LifeCycleMapperFake::getInstance(); }
protected function setUp() { parent::setUp(); $this->_mapper = ZonePlanMapperFake::getInstance(); }
protected function setUp() { parent::setUp(); $this->_spMapper = \Application\Model\Mapper\SupplServicesMapper::getInstance(); $supplJson = ' { "name":"SupplServices 1", "description":"A supplServices for tests", "published":false, "currency":"978", "selfManagement":2, "vpnService":1, "advancedSupervision":2, "location":2, "dca":1, "dim":2, "supervisionLevel":1, "applicationOriginatedSmsMsisdn":"App 1", "tariffs":{ "selfManagement":{ "transitions":{ "setup":1, "termination":20, "suspension":300, "reactivation":4500 }, "customer":{ "monthlyActive":0, "monthlySuspended":0 } }, "vpn":{ "transitions":{ "setup":0, "termination":0, "suspension":0, "reactivation":0 }, "customer":{ "monthlyActive":0, "monthlySuspended":0, "monthlyStaticIp":0, "customApn":0 }, "subscription":{ "monthlyActive":0, "monthlyStaticIp":0 } }, "appOriginatedSms":{ "transitions":{ "setup":0, "termination":0, "suspension":0, "reactivation":0 }, "customer":{ "monthlyActive":11, "monthlySuspended":120, "operationSendSms":134, "monthlyVoucherUnits":0 } }, "advancedSupervision":{ "transitions":{ "setup":0, "termination":0, "suspension":0, "reactivation":0 }, "customer":{ "monthlyActive":0, "monthlySuspended":0 }, "subscription":{ "monthlyActive":0, "operationDiagnosisIcmp":0 } }, "location":{ "transitions":{ "setup":0, "termination":0, "suspension":0, "reactivation":0 }, "customer":{ "monthlyActive":0, "monthlySuspended":0 }, "subscription":{ "monthlyActive":0 } }, "dca":{ "transitions":{ "setup":0, "termination":0, "suspension":0, "reactivation":0 }, "customer":{ "monthlyActive":0, "monthlySuspended":0 }, "subscription":{ "monthlyActive":0 } }, "dim":{ "transitions":{ "setup":0, "termination":0, "suspension":0, "reactivation":0 }, "customer":{ "monthlyActive":0, "monthlySuspended":0 }, "subscription":{ "monthlyActive":0 } }, "advsupLocLevel":{ "customer":{ "monthlyLevel_1":0, "monthlyLevel_2":0, "monthlyLevel_3":0, "monthlyLevel_4":0, "monthlyLevel_5":0 }, "subscription":{ "monthlyLevel_1":0, "monthlyLevel_2":0, "monthlyLevel_3":0, "monthlyLevel_4":0, "monthlyLevel_5":0 } }, "other":{ "simSetup":0, "simTransportation":0, "simActivation":0 } }, "serviceProviderId":"' . self::PROVIDER_COMMERCIAL_ORG_ID . '", "serviceProviderName":"MockServiceProvider", "customerId":"' . self::CUSTOMER_ORG_ID . '", "customerName":"M2M_CUSTOMER", "applicationOriginatedSms":2 } '; $array = Zend_Json::decode($supplJson); $this->_suppServicesPack = new \Application\Model\SupplServicesModel($array); $this->_addUser(self::SERVICE_PROVIDER_ID, Organization\OrgServiceProviderModel::ORG_TYPE); }
protected function setUp() { parent::setUp(); $this->_mapper = \Application\Model\Mapper\TariffPlanServicesMapper::getInstance(); }
protected function setUp() { parent::setUp(); $this->_spMapper = \Application\Model\Mapper\SupplServicesMapper::getInstance(); $this->_user = $this->_createAuthUser(array('userName' => 'SimUserTest', 'organizationId' => self::CUSTOMER_ORG_ID)); }
protected function setUp() { parent::setUp(); $this->_mapper = \Application\Model\Mapper\PreBillMapper::getInstance(); }
protected function setUp() { parent::setUp(); //TODO: clean all cache files (prefix) }