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_getProductStatusTest.php

    r22567 r23555  
    1212    { 
    1313        parent::setUp(); 
     14        $this->setUpProductClass(); 
     15        $this->setUpProductStatus(); 
    1416        $this->objProducts = new SC_Product_Ex(); 
    1517    } 
     
    2426    public function testGetProductStatus_商品IDなしは空の配列を返す() 
    2527    { 
    26         $this->setUpProductClass(); 
    27         $this->setUpProducts(); 
    28         $this->setUpClassCategory(); 
    29         $this->setUpProductStatus(); 
    30  
    3128        $this->expected = array(); 
    3229        $productIds = null; 
     
    3936    public function testGetProductStatus_指定した商品IDの商品ステータスを返す() 
    4037    { 
    41         $this->setUpProductClass(); 
    42         $this->setUpProducts(); 
    43         $this->setUpClassCategory(); 
    44         $this->setUpProductStatus(); 
    45  
    4638        $this->expected = array('1001' => array('1')); 
    4739        $productIds = array('1001'); 
Note: See TracChangeset for help on using the changeset viewer.