@@ -22,8 +22,7 @@ public function test_controller()
2222 [$ id , $ magiclinkUrl ] = $ this ->generateLegacyMagicLink ($ action );
2323
2424 $ this ->get ($ magiclinkUrl )
25- ->assertStatus (200 )
26- ->assertSeeText ('im a controller invoke ' );
25+ ->assertStatus (419 );
2726
2827 $ this ->artisan ('magiclink:migrate ' , ['--force ' => true ])
2928 ->assertSuccessful ();
@@ -42,11 +41,7 @@ public function test_download_file()
4241 [$ id , $ magiclinkUrl ] = $ this ->generateLegacyMagicLink (new DownloadFileAction ('text.txt ' ));
4342
4443 $ this ->get ($ magiclinkUrl )
45- ->assertStatus (200 )
46- ->assertHeader (
47- 'content-disposition ' ,
48- 'attachment; filename=text.txt '
49- );
44+ ->assertStatus (419 );
5045
5146 $ this ->artisan ('magiclink:migrate ' , ['--force ' => true ])
5247 ->assertSuccessful ();
@@ -90,8 +85,7 @@ function () {
9085 ));
9186
9287 $ this ->get ($ magiclinkUrl )
93- ->assertStatus (200 )
94- ->assertSeeText ('callback called ' );
88+ ->assertStatus (419 );
9589
9690 $ this ->artisan ('magiclink:migrate ' , ['--force ' => true ])
9791 ->assertSuccessful ();
@@ -110,8 +104,7 @@ public function test_view()
110104 [$ id , $ magiclinkUrl ] = $ this ->generateLegacyMagicLink (new ViewAction ('view ' ));
111105
112106 $ this ->get ($ magiclinkUrl )
113- ->assertStatus (200 )
114- ->assertSeeText ('This is a tests view ' );
107+ ->assertStatus (419 );
115108
116109 $ this ->artisan ('magiclink:migrate ' , ['--force ' => true ])
117110 ->assertSuccessful ();
@@ -132,8 +125,7 @@ public function test_dry_run()
132125 [$ id , $ magiclinkUrl ] = $ this ->generateLegacyMagicLink ($ action );
133126
134127 $ this ->get ($ magiclinkUrl )
135- ->assertStatus (200 )
136- ->assertSeeText ('im a controller invoke ' );
128+ ->assertStatus (419 );
137129
138130 $ actionLegacy = DB ::table ('magic_links ' )->where ('id ' , $ id )->first ()->action ;
139131
@@ -143,8 +135,7 @@ public function test_dry_run()
143135 $ this ->assertEquals ($ actionLegacy , DB ::table ('magic_links ' )->where ('id ' , $ id )->first ()->action );
144136
145137 $ this ->get ($ magiclinkUrl )
146- ->assertStatus (200 )
147- ->assertSeeText ('im a controller invoke ' );
138+ ->assertStatus (419 );
148139 }
149140
150141 private function generateLegacyMagicLink ($ action ): array
0 commit comments