Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | $HOME = realpath(dirname(__FILE__)) . "/../../../.."; |
---|
4 | // 商品別税率機能無効 |
---|
5 | define('OPTION_PRODUCT_TAX_RULE', 1); |
---|
6 | require_once($HOME . "/tests/class/helper/SC_Helper_TaxRule/SC_Helper_TaxRule_TestBase.php"); |
---|
7 | |
---|
8 | class SC_Helper_TaxRule_getTaxRule_OptionProductTaxRuleTest extends SC_Helper_TaxRule_TestBase |
---|
9 | { |
---|
10 | |
---|
11 | protected function setUp() |
---|
12 | { |
---|
13 | parent::setUp(); |
---|
14 | $this->objTaxRule = new SC_Helper_TaxRule_Ex(); |
---|
15 | } |
---|
16 | |
---|
17 | protected function tearDown() |
---|
18 | { |
---|
19 | parent::tearDown(); |
---|
20 | } |
---|
21 | |
---|
22 | ///////////////////////////////////////// |
---|
23 | |
---|
24 | /** |
---|
25 | * @test |
---|
26 | */ |
---|
27 | public function 定数が正しく設定されているかのテスト() |
---|
28 | { |
---|
29 | $this->expected = 1; |
---|
30 | $this->actual = constant('OPTION_PRODUCT_TAX_RULE'); |
---|
31 | $this->verify(); |
---|
32 | } |
---|
33 | |
---|
34 | /** |
---|
35 | * @test |
---|
36 | */ |
---|
37 | /* |
---|
38 | public function 引数がからの場合税率設定で設定かつ適用日時内の最新の値が返される() |
---|
39 | { |
---|
40 | $this->setUpTax(); |
---|
41 | $this->expected = array( |
---|
42 | 'apply_date' => '2014-01-01 00:00:00', |
---|
43 | 'tax_rate' => '5', |
---|
44 | 'product_id' => '0', |
---|
45 | 'product_class_id' => '0', |
---|
46 | 'del_flg' => '0' |
---|
47 | ); |
---|
48 | |
---|
49 | $return = $this->objTaxRule->getTaxRule(); |
---|
50 | $this->actual = array( |
---|
51 | 'apply_date' => $return['apply_date'], |
---|
52 | 'tax_rate' => $return['tax_rate'], |
---|
53 | 'product_id' => $return['product_id'], |
---|
54 | 'product_class_id' => $return['product_class_id'], |
---|
55 | 'del_flg' => $return['del_flg'] |
---|
56 | ); |
---|
57 | |
---|
58 | $this->verify(); |
---|
59 | }*/ |
---|
60 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.