Пример #1
0
 public function setUp()
 {
     $this->_xfabricBearerToken = Mage::getModel('xcom_xfabric/authorization')->load()->getFabricData(Xcom_Xfabric_Model_Authorization::TOKEN);
     $this->_fabricURL = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) . '/tests/integration/index.php/xfabric/endpoint/';
     $this->_encoder = Mage::getModel('xcom_xfabric/encoder_avro');
     parent::setUp();
 }
Пример #2
0
 public function setUp()
 {
     parent::setUp();
     $headers = array('HEADER1' => 'test', 'AUTHORIZATION' => 'test_2lkj4234');
     $topic = 'com.x.ordermanagement.v2/ProcessSalesChannelOrder/OrderCancelled';
     $body = array('test' => 'test');
     $messageData = array('test1' => 'test1');
     $this->_options = array('db_adapter' => Mage::getModel('xcom_xfabric/message_response'), 'headers' => $headers, 'topic' => $topic, 'body' => $body, 'message_data' => $messageData, 'direction' => Xcom_Xfabric_Model_Message::DIRECTION_OUTBOUND, 'status' => Xcom_Xfabric_Model_Message::MESSAGE_STATUS_INVALID);
 }
 public function tearDown()
 {
     if (isset($this->_conn)) {
         $this->_conn->query('SET FOREIGN_KEY_CHECKS = 1;');
         $this->_conn->rollback();
         $this->_conn = null;
     }
     if (!self::$_setUp) {
         throw new PHPUnit_Framework_Exception(get_class($this) . '::setUp() not called before start test.');
     }
     self::$_setUp = false;
 }
 public function setUp()
 {
     parent::setUp();
     $this->setUpBeforeEachTest();
     self::$_lastXMessageId = $this->_getLatestXMessageId();
 }