Finish re-working tests to run on test database
This commit is contained in:
parent
09fc211623
commit
1abca77bdc
50 changed files with 535 additions and 265 deletions
|
@ -3,6 +3,7 @@
|
|||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Note;
|
||||
use Exception;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
|
@ -19,10 +20,11 @@ class NoteFactory extends Factory
|
|||
* Define the model's default state.
|
||||
*
|
||||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
$now = Carbon::now()->subDays(rand(5, 15));
|
||||
$now = Carbon::now()->subDays(random_int(5, 15));
|
||||
|
||||
return [
|
||||
'note' => $this->faker->paragraph,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue