Revision 22567,
1.7 KB
checked in by shutta, 11 years ago
(diff) |
#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.12.4)
Zend Framework PHP 標準コーディング規約のコーディングスタイルへ準拠。
classおよびfunctionの開始波括弧「{」のスタイルを修正。
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | $HOME = realpath(dirname(__FILE__)) . "/../../.."; |
---|
4 | require_once($HOME . "/tests/class/SC_Product/SC_Product_TestBase.php"); |
---|
5 | /** |
---|
6 | * |
---|
7 | */ |
---|
8 | class SC_Product_getProductsClassTest extends SC_Product_TestBase |
---|
9 | { |
---|
10 | |
---|
11 | protected function setUp() |
---|
12 | { |
---|
13 | parent::setUp(); |
---|
14 | $this->objProducts = new SC_Product_Ex(); |
---|
15 | } |
---|
16 | |
---|
17 | protected function tearDown() |
---|
18 | { |
---|
19 | parent::tearDown(); |
---|
20 | } |
---|
21 | |
---|
22 | ///////////////////////////////////////// |
---|
23 | |
---|
24 | public function testGetProductsClass_商品規格IDから規格情報を返す() |
---|
25 | { |
---|
26 | $this->setUpProductClass(); |
---|
27 | $this->setUpProducts(); |
---|
28 | $this->setUpClassCategory(); |
---|
29 | |
---|
30 | $this->expected = array( |
---|
31 | 'product_id' => '1001' |
---|
32 | ,'del_flg' => '0' |
---|
33 | ,'point_rate' => '0' |
---|
34 | ,'stock' => '99' |
---|
35 | ,'stock_unlimited' => '0' |
---|
36 | ,'sale_limit' => null |
---|
37 | ,'price01' => '1500' |
---|
38 | ,'price02' => '1500' |
---|
39 | ,'product_code' => 'code1001' |
---|
40 | ,'product_class_id' => '1001' |
---|
41 | ,'product_type_id' => '1' |
---|
42 | ,'down_filename' => null |
---|
43 | ,'down_realfilename' => null |
---|
44 | ,'classcategory_name1' => 'cat1001' |
---|
45 | ,'rank1' => null |
---|
46 | ,'class_name1' => '味' |
---|
47 | ,'class_id1' => '1' |
---|
48 | ,'classcategory_id1' => '1001' |
---|
49 | ,'classcategory_id2' => '1002' |
---|
50 | ,'classcategory_name2' => 'cat1002' |
---|
51 | ,'rank2' => null |
---|
52 | ,'class_name2' => '味' |
---|
53 | ,'class_id2' => '1' |
---|
54 | ); |
---|
55 | |
---|
56 | $this->actual = $this->objProducts->getProductsClass('1001'); |
---|
57 | |
---|
58 | $this->verify('商品規格'); |
---|
59 | } |
---|
60 | |
---|
61 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.