Ejemplo n.º 1
0
 /**
  * Create product form to submit.
  *
  * @return array
  */
 protected function createFormData()
 {
     /**
      * @var Generator $faker
      */
     $faker = $this->getFaker();
     $form = array('class' => array('product_type' => 1, 'price01' => $faker->randomNumber(5), 'price02' => $faker->randomNumber(5), 'stock' => $faker->randomNumber(3), 'stock_unlimited' => 0, 'code' => $faker->word, 'sale_limit' => null, 'delivery_date' => ''), 'name' => $faker->word, 'product_image' => null, 'description_detail' => $faker->text, 'description_list' => $faker->paragraph, 'Category' => null, 'Tag' => 1, 'search_word' => $faker->word, 'free_area' => $faker->text, 'Status' => 1, 'note' => $faker->text, 'tags' => null, 'images' => null, 'add_images' => null, 'delete_images' => null, '_token' => 'dummy');
     if (Version::isSupport('3.0.9', '==')) {
         unset($form['Tag']);
         $form['tag'] = $faker->word;
     }
     return $form;
 }
Ejemplo n.º 2
0
 /**
  * v3.0.9以降のフックポイントに対応しているのか.
  *
  * @return bool
  */
 private function supportNewHookPoint()
 {
     return Version::isSupport();
 }