source: branches/version-2_13-dev/tests/class/SC_Product/SC_Product_getProductsClassTest.php @ 23543

Revision 23543, 1.9 KB checked in by shutta, 10 years ago (diff)

#2558 商品管理>商品登録(商品規格) dtb_classcategory.del_flg を関知していない
r23541 では不十分だったので、残りの1失敗(MySQL)への修正。

Line 
1<?php
2
3$HOME = realpath(dirname(__FILE__)) . "/../../..";
4require_once($HOME . "/tests/class/SC_Product/SC_Product_TestBase.php");
5/**
6 *
7 */
8class 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' => '1'
46                ,'class_name1' => '味'
47                ,'class_id1' => '1'
48                ,'classcategory_id1' => '1001'
49                ,'classcategory_id2' => '1002'
50                ,'classcategory_name2' => 'cat1002'
51                ,'rank2' => '2'
52                ,'class_name2' => '味'
53                ,'class_id2' => '1'
54                ,'price01_inctax' => SC_Helper_TaxRule_Ex::sfCalcIncTax(1500)
55                ,'price02_inctax' => SC_Helper_TaxRule_Ex::sfCalcIncTax(1500)
56        );
57
58        $this->actual = $this->objProducts->getProductsClass('1001');
59
60        $this->verify('商品規格');
61    }
62
63}
Note: See TracBrowser for help on using the repository browser.