Ignore:
Timestamp:
2014/06/15 02:04:23 (10 years ago)
Author:
shutta
Message:

#1993 [共通クラス]SC_Product
dtb_classテーブルのデータ初期化が漏れていたので追加。(必要なデータはクラス内で用意させる)
setUp周りの冗長な処理を改善。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/tests/class/SC_Product/SC_Product_findProductCountTest.php

    r22960 r23555  
    1212    { 
    1313        parent::setUp(); 
     14        $this->setUpProductClass(); 
    1415        $this->objProducts = new SC_Product_Ex(); 
    1516    } 
     
    2425    public function testFindProductCount_全ての商品数を返す() 
    2526    { 
    26         $this->setUpProductClass(); 
    27         $this->setUpProducts(); 
    28         $this->setUpClassCategory(); 
    29  
    3027        $this->expected = 3; 
    3128 
     
    3734    public function testFindProductCount_検索条件に一致する商品数を返す() 
    3835    { 
    39         $this->setUpProductClass(); 
    40         $this->setUpProducts(); 
    41         $this->setUpClassCategory(); 
    42          
    4336        $this->objQuery->setWhere('product_id = ?'); 
    4437        $arrVal = array(1001); 
Note: See TracChangeset for help on using the changeset viewer.