Changeset 23333 for branches/version-2_13-dev/tests/class/helper/SC_Helper_TaxRule/SC_Helper_TaxRule_getTaxRuleTest.php
- Timestamp:
- 2014/02/05 17:45:25 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/tests/class/helper/SC_Helper_TaxRule/SC_Helper_TaxRule_getTaxRuleTest.php
r23331 r23333 57 57 $this->verify(); 58 58 } 59 60 /** 61 * @test 62 */ 63 public function 商品idを指定した場合税率設定で設定かつ適用日時内の最新の値が返される() 64 { 65 $this->setUpTax(); 66 $this->expected = array( 67 'apply_date' => '2014-01-01 00:00:00', 68 'tax_rate' => '5', 69 'product_id' => '0', 70 'product_class_id' => '0', 71 'del_flg' => '0' 72 ); 73 74 $return = $this->objTaxRule->getTaxRule(1000); 75 $this->actual = array( 76 'apply_date' => $return['apply_date'], 77 'tax_rate' => $return['tax_rate'], 78 'product_id' => $return['product_id'], 79 'product_class_id' => $return['product_class_id'], 80 'del_flg' => $return['del_flg'] 81 ); 82 83 $this->verify(); 84 } 85 86 /** 87 * @test 88 */ 89 public function 商品規格idを指定した場合税率設定で設定かつ適用日時内の最新の値が返される() 90 { 91 $this->setUpTax(); 92 $this->expected = array( 93 'apply_date' => '2014-02-03 00:00:00', 94 'tax_rate' => '5', 95 'product_id' => '0', 96 'product_class_id' => '0', 97 'del_flg' => '0' 98 ); 99 100 $return = $this->objTaxRule->getTaxRule(1000, 2000); 101 $this->actual = array( 102 'apply_date' => $return['apply_date'], 103 'tax_rate' => $return['tax_rate'], 104 'product_id' => $return['product_id'], 105 'product_class_id' => $return['product_class_id'], 106 'del_flg' => $return['del_flg'] 107 ); 108 109 $this->verify(); 110 } 59 111 }
Note: See TracChangeset
for help on using the changeset viewer.