Changeset 23339


Ignore:
Timestamp:
2014/02/05 22:39:08 (9 years ago)
Author:
kimoto
Message:

#2503 apply_dateが登録されない問題

Location:
branches/version-2_13-dev/tests/class/helper/SC_Helper_TaxRule
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/tests/class/helper/SC_Helper_TaxRule/SC_Helper_TaxRule_TestBase.php

    r23338 r23339  
    4747    protected function setUpTax() 
    4848    { 
    49         $_SESSION['member_id'] = 1; 
    5049        $taxs = array( 
    5150            array( 
     
    5756                'del_flg' => '0', 
    5857                'member_id' => 1, 
    59                 'create_date' => 'CURRENT_TIMESTAMP', 
    60                 'update_date' => 'CURRENT_TIMESTAMP', 
     58                'create_date' => '2000-01-01 00:00:00', 
     59                'update_date' => '2000-01-01 00:00:00', 
    6160            ), 
    6261            array( 
     
    6867                'del_flg' => '0', 
    6968                'member_id' => 1, 
    70                 'create_date' => 'CURRENT_TIMESTAMP', 
    71                 'update_date' => 'CURRENT_TIMESTAMP', 
     69                'create_date' => '2000-01-01 00:00:00', 
     70                'update_date' => '2000-01-01 00:00:00', 
    7271            ), 
    7372            array( 
     
    7978                'del_flg' => '0', 
    8079                'member_id' => 1, 
    81                 'create_date' => 'CURRENT_TIMESTAMP', 
    82                 'update_date' => 'CURRENT_TIMESTAMP', 
     80                'create_date' => '2000-01-01 00:00:00', 
     81                'update_date' => '2000-01-01 00:00:00', 
    8382            ), 
    8483            array( 
     
    9089                'del_flg' => '0', 
    9190                'member_id' => 1, 
    92                 'create_date' => 'CURRENT_TIMESTAMP', 
    93                 'update_date' => 'CURRENT_TIMESTAMP', 
     91                'create_date' => '2000-01-01 00:00:00', 
     92                'update_date' => '2000-01-01 00:00:00', 
    9493            ), 
    9594            array( 
     
    101100                'del_flg' => '0', 
    102101                'member_id' => 1, 
    103                 'create_date' => 'CURRENT_TIMESTAMP', 
    104                 'update_date' => 'CURRENT_TIMESTAMP', 
     102                'create_date' => '2000-01-01 00:00:00', 
     103                'update_date' => '2000-01-01 00:00:00', 
    105104            ), 
    106105        ); 
     
    108107        $this->objQuery->delete('dtb_tax_rule'); 
    109108        foreach ($taxs as $key => $item) { 
    110             //$this->objQuery->insert('dtb_tax_rule', $item); 
    111             $this->objTaxRule->setTaxRule( 
    112                 1, 
    113                 $item['tax_rate'], 
    114                 $item['apply_date'], 
    115                 NULL, 
    116                 0, 
    117                 $item['product_id'], 
    118                 $item['product_class_id'] 
    119             ); 
     109            $this->objQuery->insert('dtb_tax_rule', $item); 
    120110        } 
    121111    } 
  • branches/version-2_13-dev/tests/class/helper/SC_Helper_TaxRule/SC_Helper_TaxRule_getTaxRuleTest.php

    r23333 r23339  
    1313        parent::setUp(); 
    1414        $this->objTaxRule = new SC_Helper_TaxRule_Ex(); 
     15        $this->setUpTax(); 
    1516    } 
    1617 
     
    3738    public function 引数がからの場合税率設定で設定かつ適用日時内の最新の値が返される() 
    3839    { 
    39         $this->setUpTax(); 
    4040        $this->expected = array( 
    4141            'apply_date' => '2014-01-01 00:00:00', 
     
    6363    public function 商品idを指定した場合税率設定で設定かつ適用日時内の最新の値が返される() 
    6464    { 
    65         $this->setUpTax(); 
    6665        $this->expected = array( 
    6766            'apply_date' => '2014-01-01 00:00:00', 
     
    8988    public function 商品規格idを指定した場合税率設定で設定かつ適用日時内の最新の値が返される() 
    9089    { 
    91         $this->setUpTax(); 
    9290        $this->expected = array( 
    9391            'apply_date' => '2014-02-03 00:00:00', 
  • branches/version-2_13-dev/tests/class/helper/SC_Helper_TaxRule/SC_Helper_TaxRule_getTaxRule_OptionProductTaxRuleTest.php

    r23333 r23339  
    1313        parent::setUp(); 
    1414        $this->objTaxRule = new SC_Helper_TaxRule_Ex(); 
     15        $this->setUpTax(); 
    1516    } 
    1617 
     
    3738    public function 引数がからの場合税率設定で設定かつ適用日時内の最新の値が返される() 
    3839    { 
    39         $this->setUpTax(); 
    4040        $this->expected = array( 
    4141            'apply_date' => '2014-01-01 00:00:00', 
     
    6363    public function 商品idを指定した場合商品に設定かつ適用日時内の最新の値が返される() 
    6464    { 
    65         $this->setUpTax(); 
    6665        $this->expected = array( 
    6766            'apply_date' => '2014-02-02 00:00:00', 
     
    8988    public function 商品規格idを指定した場合商品に登録かつ適用日時内の最新の値が返される() 
    9089    { 
    91         $this->setUpTax(); 
    9290        $this->expected = array( 
    9391            'apply_date' => '2014-02-03 00:00:00', 
     
    115113    public function 商品規格idのみを指定した場合税率設定に登録かつ適用日時内の最新の値が返される() 
    116114    { 
    117         $this->setUpTax(); 
    118115        $this->expected = array( 
    119116            'apply_date' => '2014-01-01 00:00:00', 
Note: See TracChangeset for help on using the changeset viewer.