Changeset 23339
- Timestamp:
- 2014/02/05 22:39:08 (9 years ago)
- 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 47 47 protected function setUpTax() 48 48 { 49 $_SESSION['member_id'] = 1;50 49 $taxs = array( 51 50 array( … … 57 56 'del_flg' => '0', 58 57 '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', 61 60 ), 62 61 array( … … 68 67 'del_flg' => '0', 69 68 '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', 72 71 ), 73 72 array( … … 79 78 'del_flg' => '0', 80 79 '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', 83 82 ), 84 83 array( … … 90 89 'del_flg' => '0', 91 90 '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', 94 93 ), 95 94 array( … … 101 100 'del_flg' => '0', 102 101 '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', 105 104 ), 106 105 ); … … 108 107 $this->objQuery->delete('dtb_tax_rule'); 109 108 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); 120 110 } 121 111 } -
branches/version-2_13-dev/tests/class/helper/SC_Helper_TaxRule/SC_Helper_TaxRule_getTaxRuleTest.php
r23333 r23339 13 13 parent::setUp(); 14 14 $this->objTaxRule = new SC_Helper_TaxRule_Ex(); 15 $this->setUpTax(); 15 16 } 16 17 … … 37 38 public function 引数がからの場合税率設定で設定かつ適用日時内の最新の値が返される() 38 39 { 39 $this->setUpTax();40 40 $this->expected = array( 41 41 'apply_date' => '2014-01-01 00:00:00', … … 63 63 public function 商品idを指定した場合税率設定で設定かつ適用日時内の最新の値が返される() 64 64 { 65 $this->setUpTax();66 65 $this->expected = array( 67 66 'apply_date' => '2014-01-01 00:00:00', … … 89 88 public function 商品規格idを指定した場合税率設定で設定かつ適用日時内の最新の値が返される() 90 89 { 91 $this->setUpTax();92 90 $this->expected = array( 93 91 '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 13 13 parent::setUp(); 14 14 $this->objTaxRule = new SC_Helper_TaxRule_Ex(); 15 $this->setUpTax(); 15 16 } 16 17 … … 37 38 public function 引数がからの場合税率設定で設定かつ適用日時内の最新の値が返される() 38 39 { 39 $this->setUpTax();40 40 $this->expected = array( 41 41 'apply_date' => '2014-01-01 00:00:00', … … 63 63 public function 商品idを指定した場合商品に設定かつ適用日時内の最新の値が返される() 64 64 { 65 $this->setUpTax();66 65 $this->expected = array( 67 66 'apply_date' => '2014-02-02 00:00:00', … … 89 88 public function 商品規格idを指定した場合商品に登録かつ適用日時内の最新の値が返される() 90 89 { 91 $this->setUpTax();92 90 $this->expected = array( 93 91 'apply_date' => '2014-02-03 00:00:00', … … 115 113 public function 商品規格idのみを指定した場合税率設定に登録かつ適用日時内の最新の値が返される() 116 114 { 117 $this->setUpTax();118 115 $this->expected = array( 119 116 'apply_date' => '2014-01-01 00:00:00',
Note: See TracChangeset
for help on using the changeset viewer.