source: branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_unsetOneShippingTest.php @ 22135

Revision 22135, 1.0 KB checked in by shift_hiroko.tamagawa, 9 years ago (diff)

DB操作の例を追加

Line 
1<?php
2
3$HOME = realpath(dirname(__FILE__)) . "/../../../..";
4require_once($HOME . "/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_TestBase.php");
5/**
6 *
7 */
8class SC_Helper_Purchase_unsetOneShippingTempTest extends SC_Helper_Purchase_TestBase {
9
10  protected function setUp() {
11    parent::setUp();
12  }
13
14  protected function tearDown() {
15    parent::tearDown();
16  }
17
18  /////////////////////////////////////////
19  public function testUnsetOneShippingTemp__指定したIDの配送情報のみが破棄される() {
20    $this->setUpShipping($this->getMultipleShipping());
21
22    SC_Helper_Purchase::unsetOneShippingTemp('00002');
23
24    $this->expected = array(
25      '00001' => array(
26        'shipment_id' => '00001',
27        'shipment_item' => array('商品1'),
28        'shipping_pref' => '東京都'),
29      '00003' => array(
30        'shipment_id' => '00003',
31        'shipment_item' => array(),
32        'shipping_pref' => '埼玉県')
33    );
34    $this->actual = $_SESSION['shipping'];
35
36    $this->verify('配送情報');
37  }
38
39}
40
Note: See TracBrowser for help on using the repository browser.