Changeset 22201


Ignore:
Timestamp:
2013/01/05 14:22:33 (11 years ago)
Author:
shift_hiroko.tamagawa
Message:

#1978 SC_Helper_Purchaseの単体テストのリグレッションを修正

Location:
branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_TestBase.php

    r22169 r22201  
    476476       'price' => 3000, 
    477477       'quantity' => 10, 
    478        'point_rate' => 5 
     478       'point_rate' => 5, 
     479       'tax_rate' => 5, 
     480       'tax_rule' => 0 
    479481     ), 
    480482     array( 
     
    489491       'price' => 4000, 
    490492       'quantity' => 15, 
    491        'point_rate' => 6 
     493       'point_rate' => 6, 
     494       'tax_rate' => 3, 
     495       'tax_rule' => 1 
    492496     ), 
    493497     array( 
  • branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_getOrderDetailTest.php

    r22141 r22201  
    7474         'payment_date' => '2032-12-31 01:20:30', 
    7575         'enable' => '0', 
    76          'effective' => '1' 
     76         'effective' => '1', 
     77         'tax_rate' => '5', 
     78         'tax_rule' => '0' 
    7779       ), 
    7880       array( 
     
    9092         'payment_date' => '2032-12-31 01:20:30', 
    9193         'enable' => '1', 
    92          'effective' => '1' 
     94         'effective' => '1', 
     95         'tax_rate' => '3', 
     96         'tax_rule' => '1' 
    9397       ) 
    9498    ); 
     
    116120         // 'payment_date' => '2032-12-31 01:20:30', 
    117121         'enable' => '0', 
    118          'effective' => '1' 
     122         'effective' => '1', 
     123         'tax_rate' => '5', 
     124         'tax_rule' => '0' 
    119125       ), 
    120126       array( 
     
    132138         // 'payment_date' => '2032-12-31 01:20:30', 
    133139         'enable' => '1', 
    134          'effective' => '1' 
     140         'effective' => '1', 
     141         'tax_rate' => '3', 
     142         'tax_rule' => '1' 
    135143       ) 
    136144    ); 
  • branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_registerShippingTest.php

    r22139 r22201  
    66 * 
    77 */ 
    8 class SC_Helper_Purchase_registerShippingTempTest extends SC_Helper_Purchase_TestBase { 
     8class SC_Helper_Purchase_registerShippingTest extends SC_Helper_Purchase_TestBase { 
    99 
    1010  protected function setUp() { 
     
    3030    ); 
    3131  
    32     $this->expected['count'] = '3'; // 1件増える 
     32    $this->expected['count'] = '4'; // 1件増える 
    3333    $this->expected['content'] = array( 
    3434        'order_id' => '10', 
     
    6767    ); 
    6868 
    69     $this->expected['count'] = '2'; // 件数が変わらない 
     69    $this->expected['count'] = '3'; // 件数が変わらない 
    7070    $this->expected['content'] = array( 
    7171        'order_id' => '2', 
     
    104104    ); 
    105105 
    106     $this->expected['count'] = '2'; 
     106    $this->expected['count'] = '3'; 
    107107    $this->expected['content'] = array( 
    108108        'order_id' => '2', 
     
    141141    ); 
    142142 
    143     $this->expected['count'] = '2'; // 件数が変わらない 
     143    $this->expected['count'] = '3'; // 件数が変わらない 
    144144    $this->expected['content'] = array( 
    145145        'order_id' => '2', 
Note: See TracChangeset for help on using the changeset viewer.