write tests for azmayesh resources
This commit is contained in:
@@ -19,8 +19,8 @@ class AzmayeshSampleFactory extends Factory
|
||||
{
|
||||
return [
|
||||
'azmayesh_id' => Azmayesh::factory(),
|
||||
'azmayesh_name' => function (array $attributes) {
|
||||
return Azmayesh::query()->find($attributes['azmayesh_id'])->name;
|
||||
'azmayesh_project_name' => function (array $attributes) {
|
||||
return Azmayesh::query()->find($attributes['azmayesh_id'])->project_name;
|
||||
},
|
||||
'data' => json_encode(['test']),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user