public function __construct() { $this->_controllerUrl = '/externalr12/steeringlist'; $this->_userId = \App_Test_PHPUnit_Framework_TestCase::PROVIDER_COMMERCIAL_ORG_ID; $this->_authType = \App_Controller_Plugin_Auth::AUTH_TYPE_EXTERNAL; parent::__construct(); }
public function __construct() { $this->_userId = App_Test_PHPUnit_Framework_TestCase::CUSTOMER_USER_ID; parent::__construct(); $this->controller = new FakeDownloadReportController($this->getRequest(), $this->getResponse(), array()); $this->watcherData = Zend_Json_Decoder::decode('{ "entityIds": [ "report-54bfb6addd0be" ], "transport": "popbox", "eventCount": 1, "remove": "2015-07-21T14:24:45Z", "serviceId": "53aa9d8103b1b35ee9fea45b", "tags": [ "context_provider-smip_sp0000000000000000000000001" ], "scopeId": "5447c646e7bc1a2f10a599e4", "params": { "method": "POST", "url": "/api/crud/download-report", "reportType": "correlation" }, "owner": "5447c646e7bc1a2f10a599e4", "id": "54bfb6ae03b1b31ce7b07861", "scope": "user", "eventList": [ { "eventData": { "hasFailures": false, "reportData": { "items": [ { "fileUpdateTimestamp": "2014-12-11T00:00:00.000Z", "dspPlusDmm": 0, "dmm": { "filePath": "dmm_0", "value": 0 }, "dateMonthly": "2013-11", "discrepancy": -100, "network": { "filePath": "network_0", "value": 100 }, "dsp": { "filePath": "dsp_0", "value": 0 } }, { "fileUpdateTimestamp": "2014-12-13T00:00:00.000Z", "dspPlusDmm": 150, "dmm": { "filePath": "dmm_1", "value": 70 }, "dateMonthly": "2013-12", "network": { "filePath": "network_1", "value": 0 }, "dsp": { "filePath": "dsp_1", "value": 80 } }, { "fileUpdateTimestamp": "2014-12-11T00:00:00.000Z", "dspPlusDmm": 80, "dmm": { "filePath": "dmm_2", "value": 40 }, "dateMonthly": "2014-01", "discrepancy": -20, "network": { "filePath": "network_2", "value": 100 }, "dsp": { "filePath": "dsp_2", "value": 40 } }, { "fileUpdateTimestamp": "2014-12-11T00:00:00.000Z", "dspPlusDmm": 60, "dmm": { "filePath": "dmm_3", "value": 30 }, "dateMonthly": "2014-02", "discrepancy": -40, "network": { "filePath": "network_3", "value": 100 }, "dsp": { "filePath": "dsp_3", "value": 30 } }, { "fileUpdateTimestamp": "2014-12-11T00:00:00.000Z", "dspPlusDmm": 40, "dmm": { "filePath": "dmm_4", "value": 20 }, "dateMonthly": "2014-03", "discrepancy": -60, "network": { "filePath": "network_4", "value": 100 }, "dsp": { "filePath": "dsp_4", "value": 20 } }, { "fileUpdateTimestamp": "2014-12-11T00:00:00.000Z", "dspPlusDmm": 100, "dmm": { "filePath": "dmm_5", "value": 50 }, "dateMonthly": "2014-04", "discrepancy": 0, "network": { "filePath": "network_5", "value": 100 }, "dsp": { "filePath": "dsp_5", "value": 50 } }, { "fileUpdateTimestamp": "2014-12-11T00:00:00.000Z", "dspPlusDmm": 120, "dmm": { "filePath": "dmm_6", "value": 60 }, "dateMonthly": "2014-05", "discrepancy": 20, "network": { "filePath": "network_6", "value": 100 }, "dsp": { "filePath": "dsp_6", "value": 60 } }, { "fileUpdateTimestamp": "2014-12-11T00:00:00.000Z", "dspPlusDmm": 125, "dmm": { "filePath": "dmm_7", "value": 60 }, "dateMonthly": "2014-06", "discrepancy": 25, "network": { "filePath": "network_7", "value": 100 }, "dsp": { "filePath": "dsp_7", "value": 65 } }, { "fileUpdateTimestamp": "2014-12-11T00:00:00.000Z", "dspPlusDmm": 140, "dmm": { "filePath": "dmm_8", "value": 70 }, "dateMonthly": "2014-07", "discrepancy": 40, "network": { "filePath": "network_8", "value": 100 }, "dsp": { "filePath": "dsp_8", "value": 70 } }, { "fileUpdateTimestamp": "2014-12-11T00:00:00.000Z", "dspPlusDmm": 150, "dmm": { "filePath": "dmm_9", "value": 70 }, "dateMonthly": "2014-08", "discrepancy": 50, "network": { "filePath": "network_9", "value": 100 }, "dsp": { "filePath": "dsp_9", "value": 80 } }, { "fileUpdateTimestamp": "2014-12-11T00:00:00.000Z", "dspPlusDmm": 160, "dmm": { "filePath": "dmm_10", "value": 80 }, "dateMonthly": "2014-09", "discrepancy": 60, "network": { "filePath": "network_10", "value": 100 }, "dsp": { "filePath": "dsp_10", "value": 80 } }, { "fileUpdateTimestamp": "2014-12-11T03:00:07.000Z", "dspPlusDmm": 54602, "dmm": { "filePath": "dmm_11", "value": 18178 }, "dateMonthly": "2014-10", "discrepancy": -99, "network": { "filePath": "network_11", "value": 1443512968 }, "dsp": { "filePath": "dsp_11", "value": 36424 } }, { "fileUpdateTimestamp": "2014-12-11T03:00:12.000Z", "dspPlusDmm": 301358000, "dmm": { "filePath": "dmm_12", "value": 150778906 }, "dateMonthly": "2014-11", "discrepancy": 16, "network": { "filePath": "network_12", "value": 257591170 }, "dsp": { "filePath": "dsp_12", "value": 150579094 } }, { "fileUpdateTimestamp": "2014-12-13T03:00:00.000Z", "dspPlusDmm": 50000, "dmm": { "filePath": "dmm_13", "value": 28000 }, "dateMonthly": "2014-12", "discrepancy": -99, "network": { "filePath": "network_13", "value": 1045122480 }, "dsp": { "filePath": "dsp_13", "value": 22000 } } ], "count": 14 } }, "created": "2015-01-21T14:24:48Z", "pushEventData": true, "namespace": "connectivity", "serviceId": "53aa9d8103b1b35ee9fea45b", "entityType": "report", "entityId": "report-54bfb6addd0be" } ], "maxEvents": 1, "priority": "low", "entityType": "report", "maxEventStackSize": 1, "namespace": "connectivity", "expire": "2015-01-22T14:24:45Z", "status": "finished" }'); $this->watcher = new WatcherModel($this->watcherData); }
public function setUp() { parent::setUp(); $this->_icc = $this->_genLuhn('893144' . substr(str_replace('.', '', microtime(true)), 0, 13)); $this->_orderId = substr(str_replace('.', '', microtime(true)), 0, 10); }