@@ -25,7 +25,7 @@ protected function setUp(): void
2525 /** @test */
2626 public function published_articles_can_be_shared_on_twitter ()
2727 {
28- $ article = factory ( Article::class )->create ([
28+ $ article = Article::factory ( )->create ([
2929 'title ' => 'My First Article ' ,
3030 'submitted_at ' => now (),
3131 'approved_at ' => now (),
@@ -55,7 +55,7 @@ public function articles_are_shared_with_twitter_handle()
5555 'twitter ' => '_joedixon ' ,
5656 ]);
5757
58- factory ( Article::class )->create ([
58+ Article::factory ( )->create ([
5959 'author_id ' => $ user ->id (),
6060 'submitted_at ' => now (),
6161 'approved_at ' => now (),
@@ -79,7 +79,7 @@ public function articles_are_shared_with_name_when_no_twitter_handle()
7979 'name ' => 'Joe Dixon ' ,
8080 ]);
8181
82- factory ( Article::class )->create ([
82+ Article::factory ( )->create ([
8383 'author_id ' => $ user ->id (),
8484 'submitted_at ' => now (),
8585 'approved_at ' => now (),
@@ -99,7 +99,7 @@ function ($notification, $channels, $notifiable) use ($user) {
9999 /** @test */
100100 public function already_shared_articles_are_not_shared_again ()
101101 {
102- factory ( Article::class )->create ([
102+ Article::factory ( )->create ([
103103 'submitted_at ' => now (),
104104 'approved_at ' => now (),
105105 'shared_at ' => now (),
@@ -113,7 +113,7 @@ public function already_shared_articles_are_not_shared_again()
113113 /** @test */
114114 public function unapproved_articles_are_not_shared ()
115115 {
116- factory ( Article::class )->create ([
116+ Article::factory ( )->create ([
117117 'submitted_at ' => now (),
118118 ]);
119119
@@ -125,7 +125,7 @@ public function unapproved_articles_are_not_shared()
125125 /** @test */
126126 public function unsubmitted_articles_are_not_shared ()
127127 {
128- factory ( Article::class )->create ();
128+ Article::factory ( )->create ();
129129
130130 (new PostArticleToTwitter (new AnonymousNotifiable ()))->handle ();
131131
0 commit comments