@@ -226,20 +226,28 @@ public function a_logged_out_user_cannot_toggle_a_like_on_a_reply()
226226 /** @test */
227227 public function user_can_see_standalone_links_in_reply ()
228228 {
229- $ user = $ this ->createUser ();
230229 $ thread = factory (Thread::class)->create (['slug ' => 'the-first-thread ' ]);
231- factory (Reply::class)->create (['body ' =>'https://github.com/laravelio/laravel.io check this cool project ' ,'author_id ' => $ user ->id (), 'replyable_id ' => $ thread ->id ()]);
230+ factory (Reply::class)->create ([
231+ 'body ' =>'https://github.com/laravelio/laravel.io check this cool project ' ,
232+ 'replyable_id ' => $ thread ->id ()
233+ ]);
234+
232235 $ this ->visit ("/forum/ {$ thread ->slug }" )
233- ->see ('<p>< a href=\"https:\/\/github.com\/laravelio\/laravel.io\" rel=\"nofollow\" target=\"_blank\">https:\/\/github.com\/laravelio\/laravel.io<\/a> check this cool project<\/p>\n ' );
236+ ->see ('<a href=\"https:\/\/github.com\/laravelio\/laravel.io\" rel=\"nofollow\" target=\"_blank\">https:\/\/github.com\/laravelio\/laravel.io<\/a> ' );
234237 }
235238
236239 /** @test */
237240 public function user_can_see_standalone_links_in_thread ()
238241 {
239- $ user = $ this ->createUser ();
240- $ thread = factory (Thread::class)->create (['slug ' => 'the-first-thread ' ,'body ' => 'https://github.com/laravelio/laravel.io check this cool project ' ]);
241- factory (Reply::class)->create (['author_id ' => $ user ->id (), 'replyable_id ' => $ thread ->id ()]);
242- $ this ->visit ("/forum/ {$ thread ->slug }" )
243- ->see ('<p><a href=\"https:\/\/github.com\/laravelio\/laravel.io\" rel=\"nofollow\" target=\"_blank\">https:\/\/github.com\/laravelio\/laravel.io<\/a> check this cool project<\/p>\n ' );
242+ $ thread = factory (Thread::class)->create ([
243+ 'slug ' => 'the-first-thread ' ,
244+ 'body ' => 'https://github.com/laravelio/laravel.io check this cool project '
245+ ]);
246+ factory (Reply::class)->create ([
247+ 'replyable_id ' => $ thread ->id ()
248+ ]);
249+
250+ $ this ->visit ("/forum/ {$ thread ->slug ()}" )
251+ ->see ('<a href=\"https:\/\/github.com\/laravelio\/laravel.io\" rel=\"nofollow\" target=\"_blank\">https:\/\/github.com\/laravelio\/laravel.io<\/a> ' );
244252 }
245253}
0 commit comments