Changeset 22567 for branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_TestBase.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_TestBase.php
r22247 r22567 31 31 * @version $Id$ 32 32 */ 33 class SC_Helper_Purchase_TestBase extends Common_TestCase { 34 35 protected function setUp() { 33 class SC_Helper_Purchase_TestBase extends Common_TestCase 34 { 35 36 protected function setUp() 37 { 36 38 parent::setUp(); 37 39 } 38 40 39 protected function tearDown() { 41 protected function tearDown() 42 { 40 43 parent::tearDown(); 41 44 } … … 45 48 * セッションに配送情報を設定します。 46 49 */ 47 protected function setUpShipping($shipping) { 50 protected function setUpShipping($shipping) 51 { 48 52 if (!$shipping) { 49 53 $shipping = $this->getSingleShipping(); … … 53 57 } 54 58 55 protected function getSingleShipping() { 59 protected function getSingleShipping() 60 { 56 61 return array( 57 62 '00001' => array( … … 62 67 } 63 68 64 protected function getMultipleShipping() { 69 protected function getMultipleShipping() 70 { 65 71 return array( 66 72 '00001' => array( … … 82 88 * DBに配送情報を設定します。 83 89 */ 84 protected function setUpShippingOnDb() { 90 protected function setUpShippingOnDb() 91 { 85 92 $shippings = array( 86 93 array( … … 116 123 * DBに配送商品情報を設定します。 117 124 */ 118 protected function setUpShipmentItem() { 125 protected function setUpShipmentItem() 126 { 119 127 $shipping_items = array( 120 128 array( … … 144 152 * DBに商品クラス情報を設定します. 145 153 */ 146 protected function setUpProductClass() { 154 protected function setUpProductClass() 155 { 147 156 $product_class = array( 148 157 array( … … 173 182 174 183 $this->objQuery->delete('dtb_products_class'); 175 foreach ($product_class as $key => $item) { 184 foreach ($product_class as $key => $item) 185 { 176 186 $this->objQuery->insert('dtb_products_class', $item); 177 187 } … … 183 193 * DBに製品カテゴリ情報を登録します. 184 194 */ 185 protected function setUpClassCategory() { 195 protected function setUpClassCategory() 196 { 186 197 $class_category = array( 187 198 array( … … 210 221 * DBに製品情報を登録します. 211 222 */ 212 protected function setUpProducts() { 223 protected function setUpProducts() 224 { 213 225 $products = array( 214 226 array( … … 239 251 * DBに支払方法の情報を登録します. 240 252 */ 241 protected function setUpPaymentOptions() { 253 protected function setUpPaymentOptions() 254 { 242 255 $payment_options = array( 243 256 array( … … 292 305 * DBに配送業者の情報を登録します. 293 306 */ 294 protected function setUpDeliv() { 307 protected function setUpDeliv() 308 { 295 309 $deliv = array( 296 310 array( // 削除フラグON … … 338 352 * DBにお届け時間の情報を登録します. 339 353 */ 340 protected function setUpDelivTime() { 354 protected function setUpDelivTime() 355 { 341 356 $deliv_time = array( 342 357 array( … … 366 381 * DBに支払方法の情報を登録します. 367 382 */ 368 protected function setUpPayment() { 383 protected function setUpPayment() 384 { 369 385 $payment = array( 370 386 array( … … 433 449 * DBに受注情報を設定します. 434 450 */ 435 protected function setUpOrder() { 451 protected function setUpOrder() 452 { 436 453 $order = array( 437 454 array( … … 468 485 * DBに受注一時情報を設定します. 469 486 */ 470 protected function setUpOrderTemp() { 487 protected function setUpOrderTemp() 488 { 471 489 $order = array( 472 490 array( … … 496 514 * DBに受注詳細を設定します. 497 515 */ 498 protected function setUpOrderDetail() { 516 protected function setUpOrderDetail() 517 { 499 518 $order_detail = array( 500 519 array( … … 546 565 * DBに顧客情報を設定します。 547 566 */ 548 protected function setUpCustomer() { 567 protected function setUpCustomer() 568 { 549 569 $customer = array( 550 570 array(
Note: See TracChangeset
for help on using the changeset viewer.