@@ -49,7 +49,7 @@ public function users_can_create_an_article()
4949 'body ' => 'This article will go into depth on working with database migrations. ' ,
5050 'tags ' => [$ tag ->id ()],
5151 'series ' => $ series ->id (),
52- 'status ' => 'draft ' ,
52+ 'published ' => '0 ' ,
5353 ])
5454 ->assertRedirectedTo ('/articles/using-database-migrations ' )
5555 ->assertSessionHas ('success ' , 'Article successfully created! ' );
@@ -63,7 +63,7 @@ public function users_can_publish_an_article()
6363 $ this ->post ('/articles ' , [
6464 'title ' => 'Using database migrations ' ,
6565 'body ' => 'This article will go into depth on working with database migrations. ' ,
66- 'status ' => 'publish ' ,
66+ 'published ' => '1 ' ,
6767 ])
6868 ->assertRedirectedTo ('/articles/using-database-migrations ' )
6969 ->followRedirects ()
@@ -78,7 +78,7 @@ public function users_can_create_a_draft_article()
7878 $ this ->post ('/articles ' , [
7979 'title ' => 'Using database migrations ' ,
8080 'body ' => 'This article will go into depth on working with database migrations. ' ,
81- 'status ' => 'draft ' ,
81+ 'published ' => '0 ' ,
8282 ])
8383 ->assertRedirectedTo ('/articles/using-database-migrations ' )
8484 ->followRedirects ()
@@ -168,7 +168,7 @@ public function users_can_edit_an_article()
168168 'body ' => 'This article will go into depth on working with database migrations. ' ,
169169 'tags ' => [$ tag ->id ()],
170170 'series ' => $ series ->id (),
171- 'status ' => 'publish ' ,
171+ 'published ' => '1 ' ,
172172 ])
173173 ->assertRedirectedTo ('/articles/using-database-migrations ' )
174174 ->assertSessionHas ('success ' , 'Article successfully updated! ' );
@@ -190,7 +190,7 @@ public function users_can_publish_an_existing_article()
190190 $ this ->put ('/articles/my-first-article ' , [
191191 'title ' => 'Using database migrations ' ,
192192 'body ' => 'This article will go into depth on working with database migrations. ' ,
193- 'status ' => 'publish ' ,
193+ 'published ' => '1 ' ,
194194 ])
195195 ->assertRedirectedTo ('/articles/using-database-migrations ' )
196196 ->followRedirects ()
@@ -213,7 +213,7 @@ public function users_can_unpublish_an_existing_article()
213213 $ this ->put ('/articles/my-first-article ' , [
214214 'title ' => 'Using database migrations ' ,
215215 'body ' => 'This article will go into depth on working with database migrations. ' ,
216- 'status ' => 'draft ' ,
216+ 'published ' => '0 ' ,
217217 ])
218218 ->assertRedirectedTo ('/articles/using-database-migrations ' )
219219 ->followRedirects ()
@@ -323,7 +323,11 @@ public function canonical_urls_are_rendered()
323323 /** @test */
324324 public function custom_canonical_urls_are_rendered ()
325325 {
326- factory (Article::class)->create (['slug ' => 'my-first-article ' , 'original_url ' => 'https://joedixon.co.uk/my-first-article ' , 'published_at ' => now ()]);
326+ factory (Article::class)->create ([
327+ 'slug ' => 'my-first-article ' ,
328+ 'original_url ' => 'https://joedixon.co.uk/my-first-article ' ,
329+ 'published_at ' => now ()
330+ ]);
327331
328332 $ this ->get ('/articles/my-first-article ' )
329333 ->see ('<link rel="canonical" href="https://joedixon.co.uk/my-first-article" /> ' );
0 commit comments