Skip to content

Commit

Permalink
test: added missing song resource factory (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrch authored Oct 31, 2023
1 parent 6fe645d commit 708e6e4
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions database/factories/Pivots/Wiki/SongResourceFactory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

declare(strict_types=1);

namespace Database\Factories\Pivots\Wiki;

use App\Pivots\Wiki\SongResource;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;

/**
* Class SongResourceFactory.
*
* @method SongResource createOne($attributes = [])
* @method SongResource makeOne($attributes = [])
*
* @extends Factory<SongResource>
*/
class SongResourceFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var class-string<SongResource>
*/
protected $model = SongResource::class;

/**
* Define the model's default state.
*
* @return array
*/
public function definition(): array
{
return [
SongResource::ATTRIBUTE_AS => Str::random(),
];
}
}

0 comments on commit 708e6e4

Please sign in to comment.