#134 - fix
This commit is contained in:
parent
07ed41223a
commit
cda691ea2b
@ -17,7 +17,7 @@ class ResumeFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
"name" => fn(array $attributes): bool => empty($attributes["user_id"]) ? $this->faker->name : null,
|
||||
"name" => fn(array $attributes): ?string => empty($attributes["user_id"]) ? $this->faker->name : null,
|
||||
"education" => $this->generateEducation(),
|
||||
"languages" => $this->generateLanguages(),
|
||||
"technologies" => $this->generateTechnologies(),
|
||||
|
@ -6,6 +6,7 @@ namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Inertia\Testing\AssertableInertia as Assert;
|
||||
use Tests\FeatureTestCase;
|
||||
use Toby\Domain\Enums\EmploymentForm;
|
||||
@ -21,6 +22,8 @@ class ResumeTest extends FeatureTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
Storage::fake();
|
||||
|
||||
Technology::factory()->createMany([
|
||||
["name" => "Laravel"],
|
||||
["name" => "Symfony"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user