Compare commits
1 commit
982428faa7
...
a94622cf65
| Author | SHA1 | Date | |
|---|---|---|---|
| a94622cf65 |
1 changed files with 2 additions and 6 deletions
|
|
@ -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');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue