feat: harden tenant settings and import pipeline

This commit is contained in:
2025-09-25 11:50:18 +02:00
parent b22d91ed32
commit 9248d7a3f5
29 changed files with 577 additions and 293 deletions

View File

@@ -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');
}
}
}