Compare commits

..

1 commit

Author SHA1 Message Date
a94622cf65 106 - Extract shared community id resolution into LemmyApiService
Some checks failed
CI / ci (push) Successful in 12m25s
CI / ci (pull_request) Failing after 11m23s
2026-07-29 20:53:10 +02:00

View file

@ -96,10 +96,7 @@ 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]);
// Reuse the seeded language: PlatformChannelFactory otherwise creates one via PlatformChannel::factory()->create(['is_active' => true]);
// 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');
@ -122,8 +119,7 @@ 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]);
// Reuse the seeded language — see note above re: languageCode() collisions. PlatformChannel::factory()->create(['is_active' => true]);
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');