コード例 #1
0
 public function testGetDeliv_存在する商品種別IDを指定した場合_結果が正しい順序で取得できる()
 {
     $product_type_id = '1001';
     $this->expected['count'] = 2;
     $this->expected['first'] = array('deliv_id' => '1002', 'product_type_id' => '1001', 'name' => '配送業者02', 'rank' => '3');
     $this->expected['second'] = array('deliv_id' => '1001', 'product_type_id' => '1001', 'name' => '配送業者01', 'rank' => '2');
     $helper = new SC_Helper_Purchase();
     $result = $helper->getDeliv($product_type_id);
     $this->actual['count'] = count($result);
     $cols = array('deliv_id', 'product_type_id', 'name', 'rank');
     $this->actual['first'] = Test_Utils::mapArray($result[0], $cols);
     $this->actual['second'] = Test_Utils::mapArray($result[1], $cols);
     $this->verify('配送業者');
 }