Compare commits
1 commit
a94622cf65
...
982428faa7
| Author | SHA1 | Date | |
|---|---|---|---|
| 982428faa7 |
1 changed files with 6 additions and 2 deletions
|
|
@ -96,7 +96,10 @@ public function test_status_shows_route_step_when_platform_account_feed_and_chan
|
|||
$language = Language::first();
|
||||
PlatformAccount::factory()->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');
|
||||
|
||||
|
|
@ -119,7 +122,8 @@ public function test_status_shows_no_onboarding_needed_when_all_components_exist
|
|||
$language = Language::first();
|
||||
PlatformAccount::factory()->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]);
|
||||
|
||||
$response = $this->getJson('/api/v1/onboarding/status');
|
||||
|
|
|
|||
Loading…
Reference in a new issue