private function newTestProduct($TestCreator) { $TestProduct = new \Eccube\Entity\Product(); $Disp = $this->app['orm.em']->getRepository('Eccube\\Entity\\Master\\Disp')->find(1); $TestProduct->setName('テスト商品')->setStatus($Disp)->setNote('test note')->setDescriptionList('テスト商品 商品説明(リスト)')->setDescriptionDetail('テスト商品 商品説明(詳細)')->setFreeArea('フリー記載')->setDelFlg(0)->setCreator($TestCreator); return $TestProduct; }