コード例 #1
0
 public function testGetShippings_商品取得フラグをOFFにした場合_結果に商品情報が含まれない()
 {
     $order_id = '1001';
     $this->expected['count'] = 1;
     $this->expected['first'] = array('order_id' => '1001', 'shipping_id' => '1', 'shipping_name01' => '配送情報01', 'shipping_date' => '2012-01-12 00:00:00');
     $this->expected['shipment_item_count'] = 0;
     $helper = new SC_Helper_Purchase();
     $result = $helper->getShippings($order_id, false);
     $this->actual['count'] = count($result);
     // shipping_idごとの配列になっているのでshipping_idで抽出
     $this->actual['first'] = Test_Utils::mapArray($result['1'], array('order_id', 'shipping_id', 'shipping_name01', 'shipping_date'));
     $this->actual['shipment_item_count'] = count($result['1']['shipment_item']);
     $this->verify('配送情報');
 }