source: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_getProductsClassTest.php @ 22191

Revision 22191, 1.7 KB checked in by poego, 11 years ago (diff)

#1993 SC_Productテストケース作成

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    protected function setUp() {
11        parent::setUp();
12        $this->objProducts = new SC_Product_Ex();
13    }
14
15    protected function tearDown() {
16        parent::tearDown();
17    }
18
19    /////////////////////////////////////////
20
21    public function testGetProductsClass_商品規格ID指定() {
22        $this->setUpProductClass();
23        $this->setUpProducts();
24        $this->setUpClassCategory();
25       
26        $this->expected = array(
27                'product_id' => '1001'
28                ,'del_flg' => '0'
29                ,'point_rate' => '0'
30                ,'stock' => '99'
31                ,'stock_unlimited' => '0'
32                ,'sale_limit' => null
33                ,'price01' => '1500'
34                ,'price02' => '1500'
35                ,'product_code' => 'code1001'
36                ,'product_class_id' => '1001'
37                ,'product_type_id' => '1'
38                ,'down_filename' => null
39                ,'down_realfilename' => null
40                ,'classcategory_name1' => 'cat1001'
41                ,'rank1' => null
42                ,'class_name1' => '味'
43                ,'class_id1' => '1'
44                ,'classcategory_id1' => '1001'
45                ,'classcategory_id2' => '1002'
46                ,'classcategory_name2' => 'cat1002'
47                ,'rank2' => null
48                ,'class_name2' => '味'
49                ,'class_id2' => '1'
50        );
51
52        $this->actual = $this->objProducts->getProductsClass('1001');
53
54        $this->verify('商品規格');
55    }
56   
57}
Note: See TracBrowser for help on using the repository browser.