Changeset 22567 for branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_completeOrderTest.php
- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_completeOrderTest.php
r22257 r22567 32 32 * @version $Id$ 33 33 */ 34 class SC_Helper_Purchase_completeOrderTest extends SC_Helper_Purchase_TestBase { 34 class SC_Helper_Purchase_completeOrderTest extends SC_Helper_Purchase_TestBase 35 { 35 36 36 37 private $helper; 37 38 38 protected function setUp() { 39 protected function setUp() 40 { 39 41 parent::setUp(); 40 42 $this->setUpOrder(); … … 54 56 } 55 57 56 protected function tearDown() { 58 protected function tearDown() 59 { 57 60 parent::tearDown(); 58 61 } … … 60 63 ///////////////////////////////////////// 61 64 // 適切なfunctionが呼ばれていることのみ確認 62 public function testCompleteOrder_顧客IDが指定されている場合_購入日が更新される() { 65 public function testCompleteOrder_顧客IDが指定されている場合_購入日が更新される() 66 { 63 67 $_SESSION['customer']['customer_id'] = '1002'; // 顧客ID 64 68 $this->helper->completeOrder(ORDER_DELIV); … … 97 101 } 98 102 99 public function testCompleteOrder_顧客IDが指定されていない場合_特にエラーなく修了できる() { 103 public function testCompleteOrder_顧客IDが指定されていない場合_特にエラーなく修了できる() 104 { 100 105 $this->helper->completeOrder(); // デフォルトのステータス(NEW) 101 106 … … 135 140 } 136 141 137 class SC_Helper_Purchase_completeOrderMock extends SC_Helper_Purchase{ 142 class SC_Helper_Purchase_completeOrderMock extends SC_Helper_Purchase 143 { 138 144 139 function verifyChangeCart($uniqId, $objCartSession){ 145 function verifyChangeCart($uniqId, $objCartSession) 146 { 140 147 $_SESSION['testResult']['verifyChangeCart'] = array('uniqId'=>$uniqId); 141 148 } 142 149 143 function getOrderTemp($uniqId) { 150 function getOrderTemp($uniqId) 151 { 144 152 $_SESSION['testResult']['getOrderTemp'] = array('uniqId'=>$uniqId); 145 153 return parent::getOrderTemp($uniqId); 146 154 } 147 155 148 function registerOrderComplete($orderTemp, $objCartSession, $cartKey) { 156 function registerOrderComplete($orderTemp, $objCartSession, $cartKey) 157 { 149 158 $_SESSION['testResult']['registerOrderComplete'] = array( 150 159 'order_temp_id' => $orderTemp['order_temp_id'], … … 155 164 } 156 165 157 function registerShipmentItem($order_id, $shipping_id, $shipment_item) { 166 function registerShipmentItem($order_id, $shipping_id, $shipment_item) 167 { 158 168 $_SESSION['testResult']['registerShipmentItem'][] = array( 159 169 'order_id' => $order_id, … … 163 173 } 164 174 165 function registerShipping($order_id, $shipping_temp) { 175 function registerShipping($order_id, $shipping_temp) 176 { 166 177 $_SESSION['testResult']['registerShipping'] = array( 167 178 'order_id' => $order_id … … 169 180 } 170 181 171 function cleanupSession($order_id, $objCartSesion, $objCustomer, $cartKey) { 182 function cleanupSession($order_id, $objCartSesion, $objCustomer, $cartKey) 183 { 172 184 $_SESSION['testResult']['cleanupSession'] = array( 173 185 'order_id' => $order_id,
Note: See TracChangeset
for help on using the changeset viewer.