Changeset 22567 for branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_setShipmentItemTempForSoleTest.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_setShipmentItemTempForSoleTest.php
r22206 r22567 32 32 * @version $Id$ 33 33 */ 34 class SC_Helper_Purchase_setShipmentItemTempForSoleTest extends SC_Helper_Purchase_TestBase { 34 class SC_Helper_Purchase_setShipmentItemTempForSoleTest extends SC_Helper_Purchase_TestBase 35 { 35 36 36 37 37 protected function setUp() { 38 protected function setUp() 39 { 38 40 parent::setUp(); 39 41 } 40 42 41 protected function tearDown() { 43 protected function tearDown() 44 { 42 45 parent::tearDown(); 43 46 $_SESSION['testResult'] = null; … … 45 48 46 49 ///////////////////////////////////////// 47 public function testSetShipmentItemTempForSole__いったん配送情報がクリアされたあと改めて指定のものが設定される() { 50 public function testSetShipmentItemTempForSole__いったん配送情報がクリアされたあと改めて指定のものが設定される() 51 { 48 52 $helper = new SC_Helper_Purchase_setShipmentItemTempForSoleMock(); 49 53 $cartSession = new SC_CartSession_setShipmentItemTempForSoleMock(); … … 68 72 } 69 73 70 class SC_Helper_Purchase_setShipmentItemTempForSoleMock extends SC_Helper_Purchase { 71 function clearShipmentItemTemp() { 74 class SC_Helper_Purchase_setShipmentItemTempForSoleMock extends SC_Helper_Purchase 75 { 76 function clearShipmentItemTemp() 77 { 72 78 $_SESSION['testResult']['clearShipmentItemTemp'] = TRUE; 73 79 } 74 80 75 function setShipmentItemTemp($shipping_id, $id, $quantity) { 81 function setShipmentItemTemp($shipping_id, $id, $quantity) 82 { 76 83 $_SESSION['testResult']['shipmentItemTemp'][] = 77 84 array('shipping_id' => $shipping_id, 'id' => $id, 'quantity' => $quantity); … … 79 86 } 80 87 81 class SC_CartSession_setShipmentItemTempForSoleMock extends SC_CartSession { 82 function getCartList($key) { 88 class SC_CartSession_setShipmentItemTempForSoleMock extends SC_CartSession 89 { 90 function getCartList($key) 91 { 83 92 return array( 84 93 array('id'=>'1', 'quantity'=>'10'),
Note: See TracChangeset
for help on using the changeset viewer.