Skip to content

Commit e8412f1

Browse files
committed
Update factory
1 parent 124a0da commit e8412f1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

database/factories/UserFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function definition()
3434
'remember_token' => Str::random(10),
3535
'github_id' => $this->faker->numberBetween(10000, 99999),
3636
'github_username' => $this->faker->userName,
37+
'twitter' => $this->faker->userName,
3738
'banned_at' => null,
3839
'type' => User::DEFAULT,
3940
'bio' => $this->faker->sentence,

tests/Unit/Commands/PostArticleToTwitterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public function articles_are_shared_with_name_when_no_twitter_handle()
7777
{
7878
$user = $this->createUser([
7979
'name' => 'Joe Dixon',
80+
'twitter' => null,
8081
]);
8182

8283
Article::factory()->create([

0 commit comments

Comments
 (0)