Changeset 23333
- Timestamp:
- 2014/02/05 17:45:25 (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
r23332 r23333 85 85 'apply_date' => '2014-02-02 00:00:00', 86 86 'tax_rate' => '8', 87 'product_id' => '1 ',87 'product_id' => '1000', 88 88 'product_class_id' => '0', 89 89 'del_flg' => '0', … … 96 96 'apply_date' => '2014-02-03 00:00:00', 97 97 'tax_rate' => '9', 98 'product_id' => '1 ',99 'product_class_id' => ' 1',98 'product_id' => '1000', 99 'product_class_id' => '2000', 100 100 'del_flg' => '0', 101 101 'member_id' => 1, -
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 } -
branches/version-2_13-dev/tests/class/helper/SC_Helper_TaxRule/SC_Helper_TaxRule_getTaxRule_OptionProductTaxRuleTest.php
r23331 r23333 35 35 * @test 36 36 */ 37 /*38 37 public function 引数がからの場合税率設定で設定かつ適用日時内の最新の値が返される() 39 38 { … … 57 56 58 57 $this->verify(); 59 }*/ 58 } 59 60 /** 61 * @test 62 */ 63 public function 商品idを指定した場合商品に設定かつ適用日時内の最新の値が返される() 64 { 65 $this->setUpTax(); 66 $this->expected = array( 67 'apply_date' => '2014-02-02 00:00:00', 68 'tax_rate' => '8', 69 'product_id' => '1000', 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' => '9', 95 'product_id' => '1000', 96 'product_class_id' => '2000', 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 } 111 112 /** 113 * @test 114 */ 115 public function 商品規格idのみを指定した場合税率設定に登録かつ適用日時内の最新の値が返される() 116 { 117 $this->setUpTax(); 118 $this->expected = array( 119 'apply_date' => '2014-01-01 00:00:00', 120 'tax_rate' => '5', 121 'product_id' => '0', 122 'product_class_id' => '0', 123 'del_flg' => '0' 124 ); 125 126 $return = $this->objTaxRule->getTaxRule(0, 2000); 127 $this->actual = array( 128 'apply_date' => $return['apply_date'], 129 'tax_rate' => $return['tax_rate'], 130 'product_id' => $return['product_id'], 131 'product_class_id' => $return['product_class_id'], 132 'del_flg' => $return['del_flg'] 133 ); 134 135 $this->verify(); 136 } 60 137 }
Note: See TracChangeset
for help on using the changeset viewer.