Skip to content

Commit 2494d8a

Browse files
Added UUID package to dev deps for uuid generation, just in case this will be needed later
1 parent 6cecff5 commit 2494d8a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"require-dev": {
4848
"phpunit/phpunit": "^7.5",
4949
"mockery/mockery": "^1.0",
50-
"orchestra/testbench": "^3.8"
50+
"orchestra/testbench": "^3.8",
51+
"ramsey/uuid": "^3.0"
5152
},
5253
"autoload": {
5354
"psr-4": {

tests/database/factories/ApiModelFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use Ramsey\Uuid\Uuid;
34
use Faker\Generator as Faker;
45
use OwenIt\Auditing\Tests\Models\ApiModel;
56

@@ -12,7 +13,7 @@
1213

1314
$factory->define(ApiModel::class, function (Faker $faker) {
1415
return [
15-
'api_model_id' => '8a7c2336-705a-41ad-9231-9199b4a64269',
16+
'api_model_id' => Uuid::uuid4(),
1617
'content' => $faker->unique()->paragraph(6),
1718
'published_at' => null,
1819
];

0 commit comments

Comments
 (0)