Changeset 22252 for branches/version-2_12-dev
- Timestamp:
- 2013/01/16 10:49:55 (11 years ago)
- 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 37 37 protected function setUp() { 38 38 parent::setUp(); 39 39 $this->setUpProductClass(); 40 40 $this->helper = new SC_Helper_Purchase_cancelOrderMock(); 41 41 } … … 55 55 $this->actual['productClass'] = $this->objQuery->select( 56 56 'stock', 'dtb_products_class', 57 'product_class_id = ?', array('1001')57 'product_class_id in (?, ?)', array('1001', '1002') 58 58 ); 59 59 $this->expected = array( … … 70 70 ), 71 71 'productClass' => array( 72 array('stock' ) => '105',73 array('stock' ) => '51'72 array('stock' => '105'), 73 array('stock' => '51') 74 74 ) 75 75 ); 76 77 76 $this->verify(); 78 77 } … … 88 87 $this->actual['productClass'] = $this->objQuery->select( 89 88 'stock', 'dtb_products_class', 90 'product_class_id = ?', array('1001')89 'product_class_id in (?, ?)', array('1001', '1002') 91 90 ); 92 91 $this->expected = array( … … 103 102 ), 104 103 'productClass' => array( 105 array('stock' ) => '105',106 array('stock' ) => '51'104 array('stock' => '105'), 105 array('stock' => '51') 107 106 ) 108 107 ); … … 120 119 $this->actual['productClass'] = $this->objQuery->select( 121 120 'stock', 'dtb_products_class', 122 'product_class_id = ?', array('1001')121 'product_class_id in (?, ?)', array('1001', '1002') 123 122 ); 124 123 $this->expected = array( … … 136 135 ), 137 136 'productClass' => array( 138 array('stock' ) => '105',139 array('stock' ) => '51'137 array('stock' => '105'), 138 array('stock' => '51') 140 139 ) 141 140 ); -
branches/version-2_12-dev/tests/class/helper/SC_Helper_Purchase/SC_Helper_Purchase_completeOrderTest.php
r22206 r22252 93 93 $this->verify('適切なfunctionが呼ばれている'); 94 94 $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())); 95 97 $this->assertNotNull($last_buy_date, '最終購入日'); 96 98 }
Note: See TracChangeset
for help on using the changeset viewer.