Compare commits

..

1 commit

Author SHA1 Message Date
982428faa7 106 - Extract shared community id resolution into LemmyApiService
All checks were successful
CI / ci (push) Successful in 10m54s
CI / ci (pull_request) Successful in 11m1s
Build and Push Docker Image / build (push) Successful in 5m5s
2026-07-29 21:38:33 +02:00

View file

@ -96,7 +96,10 @@ public function test_status_shows_route_step_when_platform_account_feed_and_chan
$language = Language::first(); $language = Language::first();
PlatformAccount::factory()->create(['is_active' => true]); PlatformAccount::factory()->create(['is_active' => true]);
Feed::factory()->language($language)->create(['is_active' => true]); Feed::factory()->language($language)->create(['is_active' => true]);
PlatformChannel::factory()->create(['is_active' => true]); // Reuse the seeded language: PlatformChannelFactory otherwise creates one via
// faker->unique()->languageCode(), which can randomly draw 'en' and collide with
// the short_code created in setUp().
PlatformChannel::factory()->create(['is_active' => true, 'language_id' => $language->id]);
$response = $this->getJson('/api/v1/onboarding/status'); $response = $this->getJson('/api/v1/onboarding/status');
@ -119,7 +122,8 @@ public function test_status_shows_no_onboarding_needed_when_all_components_exist
$language = Language::first(); $language = Language::first();
PlatformAccount::factory()->create(['is_active' => true]); PlatformAccount::factory()->create(['is_active' => true]);
Feed::factory()->language($language)->create(['is_active' => true]); Feed::factory()->language($language)->create(['is_active' => true]);
PlatformChannel::factory()->create(['is_active' => true]); // Reuse the seeded language — see note above re: languageCode() collisions.
PlatformChannel::factory()->create(['is_active' => true, 'language_id' => $language->id]);
Route::factory()->create(['is_active' => true]); Route::factory()->create(['is_active' => true]);
$response = $this->getJson('/api/v1/onboarding/status'); $response = $this->getJson('/api/v1/onboarding/status');