feat: harden tenant settings and import pipeline
This commit is contained in:
@@ -263,7 +263,9 @@ class TaskApiTest extends TenantTestCase
|
||||
'tenant_id' => $this->tenant->id,
|
||||
'priority' => 'medium',
|
||||
]);
|
||||
$collectionTasks->each(fn($task) => $task->taskCollection()->associate($collection));
|
||||
$collectionTasks->each(function ($task) use ($collection) {
|
||||
$task->update(['collection_id' => $collection->id]);
|
||||
});
|
||||
|
||||
Task::factory(3)->create([
|
||||
'tenant_id' => $this->tenant->id,
|
||||
@@ -303,4 +305,8 @@ class TaskApiTest extends TenantTestCase
|
||||
->assertJsonCount(1, 'data')
|
||||
->assertJsonPath('data.0.title', 'Search Test');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user