コード例 #1
0
ファイル: Category.php プロジェクト: vanilla/vanilla-colonize
 /**
  * Defines the process for adding a new row.
  */
 protected function addRow()
 {
     $name = \Faker\Lorem::word();
     $fields = array('Name' => $name, 'UrlCode' => \Faker\Internet::slug($name), 'Description' => \Faker\Lorem::sentence(12));
     $this->prepareAndInsert($fields);
 }
コード例 #2
0
ファイル: User.php プロジェクト: vanilla/vanilla-colonize
 /**
  * Defines the process for adding a new row.
  */
 protected function addRow()
 {
     $title = \Faker\Name::name();
     $fields = array('Name' => \Faker\Internet::userName($title), 'Title' => $title, 'Location' => \Faker\Address::city(), 'About' => \Faker\Lorem::sentence(10), 'Email' => \Faker\Internet::email($title));
     $this->prepareAndInsert($fields);
 }