1
0
mirror of https://github.com/flarum/core.git synced 2025-02-23 10:46:29 +01:00
php-flarum/tests/factories/factories.php

15 lines
378 B
PHP
Raw Normal View History

<?php
$factory('Flarum\Core\Models\Discussion', [
2015-01-22 14:44:33 +10:30
'title' => $faker->sentence,
'start_time' => $faker->dateTimeThisYear,
'start_user_id' => 'factory:Flarum\Core\Models\User'
]);
$factory('Flarum\Core\Models\User', [
2015-01-22 14:44:33 +10:30
'username' => $faker->userName,
'email' => $faker->safeEmail,
'password' => 'password',
'join_time' => $faker->dateTimeThisYear
]);