File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 66use Binaryk \LaravelRestify \Tests \IntegrationTest ;
77use Illuminate \Http \UploadedFile ;
88use Illuminate \Support \Facades \Hash ;
9- use Illuminate \Support \Facades \Storage ;
109
1110class ProfileControllerTest extends IntegrationTest
1211{
@@ -25,7 +24,7 @@ public function test_profile_returns_authenticated_user()
2524 $ response = $ this ->getJson ('/restify-api/profile ' )
2625 ->assertStatus (200 )
2726 ->assertJsonStructure ([
28- 'data '
27+ 'data ' ,
2928 ]);
3029
3130 $ response ->assertJsonFragment ([
@@ -58,7 +57,6 @@ public function test_profile_update_password()
5857 ->assertStatus (200 );
5958
6059 $ this ->assertTrue (Hash::check ('secret ' , $ this ->authenticatedAs ->password ));
61-
6260 }
6361
6462 public function test_profile_update_unique_email ()
@@ -78,7 +76,7 @@ public function test_profile_upload_avatar()
7876 $ file = UploadedFile::fake ()->image ($ this ->getTestJpg ())->size (100 );
7977
8078 $ this ->postJson ('restify-api/profile/avatar ' , [
81- 'avatar ' => $ file
79+ 'avatar ' => $ file,
8280 ])
8381 ->assertStatus (200 );
8482 }
You can’t perform that action at this time.
0 commit comments