public function testSfGetProductClassId_存在しない製品IDを指定した場合_nullが返る()
 {
     $this->expected = null;
     $this->actual = SC_Utils::sfGetProductClassId('9999');
     $this->verify('取得結果が空');
 }
 function lfGetProduct($product_id)
 {
     $objQuery = new SC_Query();
     $col = "*";
     $table = "vw_products_nonclass AS noncls ";
     $where = "product_id = ?";
     $arrRet = $objQuery->select($col, $table, $where, array($product_id));
     // カテゴリID を取得
     $arrRet[0]['category_id'] = $objQuery->getCol("dtb_product_categories", "category_id", "product_id = ?", array($product_id));
     //編集時に規格IDが変わってしまうのを防ぐために規格が登録されていなければ規格IDを取得する
     if ($this->lfCheckNonClass($_POST['product_id'])) {
         $arrRet[0]['product_class_id'] = SC_Utils::sfGetProductClassId($product_id, "0", "0");
     }
     return $arrRet[0];
 }