Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | $HOME = realpath(dirname(__FILE__)) . "/../../../../"; |
---|
4 | require_once($HOME . "/tests/class/Common_TestCase.php"); |
---|
5 | /** |
---|
6 | * |
---|
7 | */ |
---|
8 | class SC_Helper_Address_TestBase extends Common_TestCase |
---|
9 | { |
---|
10 | protected function setUp() |
---|
11 | { |
---|
12 | parent::setUp(); |
---|
13 | } |
---|
14 | |
---|
15 | protected function tearDown() |
---|
16 | { |
---|
17 | parent::tearDown(); |
---|
18 | } |
---|
19 | |
---|
20 | /** |
---|
21 | * DBに規約情報を登録します. |
---|
22 | */ |
---|
23 | protected function setUpAddress() |
---|
24 | { |
---|
25 | $objQuery =& SC_Query_Ex::getSingletonInstance(); |
---|
26 | // シーケンス初期化 |
---|
27 | |
---|
28 | $kiyaku = array( |
---|
29 | array( |
---|
30 | 'other_deliv_id' => '1000', |
---|
31 | 'customer_id' => '1', |
---|
32 | 'name01' => 'テスト', |
---|
33 | 'name02' => 'いち', |
---|
34 | 'kana01' => 'テスト', |
---|
35 | 'kana02' => 'イチ', |
---|
36 | 'zip01' => '000', |
---|
37 | 'zip02'=> '0000', |
---|
38 | 'pref' => '1', |
---|
39 | 'addr01' => 'テスト', |
---|
40 | 'addr02' => 'テスト2', |
---|
41 | 'tel01' => '000', |
---|
42 | 'tel02' => '0000', |
---|
43 | 'tel03' => '0000', |
---|
44 | 'fax01' => '111', |
---|
45 | 'fax02' => '1111', |
---|
46 | 'fax03' => '1111' |
---|
47 | ), |
---|
48 | array( |
---|
49 | 'other_deliv_id' => '1001', |
---|
50 | 'customer_id' => '1', |
---|
51 | 'name01' => 'テスト', |
---|
52 | 'name02' => 'に', |
---|
53 | 'kana01' => 'テスト', |
---|
54 | 'kana02' => 'ニ', |
---|
55 | 'zip01' => '222', |
---|
56 | 'zip02'=> '2222', |
---|
57 | 'pref' => '2', |
---|
58 | 'addr01' => 'テスト1', |
---|
59 | 'addr02' => 'テスト2', |
---|
60 | 'tel01' => '000', |
---|
61 | 'tel02' => '0000', |
---|
62 | 'tel03' => '0000', |
---|
63 | 'fax01' => '111', |
---|
64 | 'fax02' => '1111', |
---|
65 | 'fax03' => '1111' |
---|
66 | ) |
---|
67 | ); |
---|
68 | |
---|
69 | $this->objQuery->delete('dtb_other_deliv'); |
---|
70 | foreach ($kiyaku as $key => $item) { |
---|
71 | $ret = $objQuery->insert('dtb_other_deliv', $item); |
---|
72 | } |
---|
73 | } |
---|
74 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.