Changeset 22252


Ignore:
Timestamp:
2013/01/16 10:49:55 (8 years ago)
Author:
shift_hiroko.tamagawa
Message:

#1978 SC_Helper_Purchase単体テスト修正

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

Legend:

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

    r22247 r22252  
    3737  protected function setUp() { 
    3838    parent::setUp(); 
    39  
     39    $this->setUpProductClass(); 
    4040    $this->helper = new SC_Helper_Purchase_cancelOrderMock(); 
    4141  } 
     
    5555    $this->actual['productClass'] = $this->objQuery->select( 
    5656      'stock', 'dtb_products_class', 
    57       'product_class_id = ?', array('1001') 
     57      'product_class_id in (?, ?)', array('1001', '1002') 
    5858    ); 
    5959    $this->expected = array( 
     
    7070      ), 
    7171      'productClass' => array( 
    72         array('stock') => '105', 
    73         array('stock') => '51' 
     72        array('stock' => '105'), 
     73        array('stock' => '51') 
    7474      ) 
    7575    ); 
    76  
    7776    $this->verify(); 
    7877  } 
     
    8887    $this->actual['productClass'] = $this->objQuery->select( 
    8988      'stock', 'dtb_products_class', 
    90       'product_class_id = ?', array('1001') 
     89      'product_class_id in (?, ?)', array('1001', '1002') 
    9190    ); 
    9291    $this->expected = array( 
     
    103102      ), 
    104103      'productClass' => array( 
    105         array('stock') => '105', 
    106         array('stock') => '51' 
     104        array('stock' => '105'), 
     105        array('stock' => '51') 
    107106      ) 
    108107    ); 
     
    120119    $this->actual['productClass'] = $this->objQuery->select( 
    121120      'stock', 'dtb_products_class', 
    122       'product_class_id = ?', array('1001') 
     121      'product_class_id in (?, ?)', array('1001', '1002') 
    123122    ); 
    124123    $this->expected = array( 
     
    136135      ), 
    137136      'productClass' => array( 
    138         array('stock') => '105', 
    139         array('stock') => '51' 
     137        array('stock' => '105'), 
     138        array('stock' => '51') 
    140139      ) 
    141140    ); 
  • branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_completeOrderTest.php

    r22206 r22252  
    9393    $this->verify('適切なfunctionが呼ばれている'); 
    9494    $last_buy_date = $this->objQuery->get('last_buy_date', 'dtb_customer', 'customer_id = ?', '1002'); 
     95    // TODO Jenkins上でテストに失敗するため、デバッグ用コードを挿入 
     96    var_dump($this->objQuery->select('*', 'dtb_customer', '', array())); 
    9597    $this->assertNotNull($last_buy_date, '最終購入日'); 
    9698  } 
Note: See TracChangeset for help on using the changeset viewer.