@@ -23,7 +23,7 @@ public function test_basic_update_works()
2323 {
2424 $ post = factory (Post::class)->create ();
2525
26- $ this ->patch ('posts/ ' . $ post ->id , [
26+ $ this ->patch ('posts/ ' . $ post ->id , [
2727 'title ' => 'Updated title ' ,
2828 ])->assertStatus (200 );
2929
@@ -34,7 +34,7 @@ public function test_put_works()
3434 {
3535 $ post = factory (Post::class)->create ();
3636
37- $ this ->withoutExceptionHandling ()->put ('posts/ ' . $ post ->id , [
37+ $ this ->withoutExceptionHandling ()->put ('posts/ ' . $ post ->id , [
3838 'title ' => 'Updated title ' ,
3939 ])->assertStatus (200 );
4040
@@ -51,7 +51,7 @@ public function test_unathorized_to_update()
5151
5252 $ _SERVER ['restify.post.update ' ] = false ;
5353
54- $ this ->patch ('posts/ ' . $ post ->id , [
54+ $ this ->patch ('posts/ ' . $ post ->id , [
5555 'title ' => 'Updated title ' ,
5656 ])->assertStatus (403 )
5757 ->assertJson ([
@@ -65,7 +65,7 @@ public function test_do_not_update_fields_without_permission()
6565
6666 $ _SERVER ['posts.authorizable.title ' ] = false ;
6767
68- $ response = $ this ->putJson ('post-with-unathorized-fields/ ' . $ post ->id , [
68+ $ response = $ this ->putJson ('post-with-unathorized-fields/ ' . $ post ->id , [
6969 'title ' => 'Updated title ' ,
7070 'user_id ' => 2 ,
7171 ])
@@ -81,7 +81,7 @@ public function test_will_not_update_readonly_fields()
8181
8282 $ post = factory (Post::class)->create (['image ' => null ]);
8383
84- $ r = $ this ->putJson ('posts-unauthorized-fields/ ' . $ post ->id , [
84+ $ r = $ this ->putJson ('posts-unauthorized-fields/ ' . $ post ->id , [
8585 'user_id ' => $ user ->id ,
8686 'image ' => 'avatar.png ' ,
8787 'title ' => 'Some post title ' ,
@@ -108,7 +108,7 @@ public function test_updating_repository_log_action()
108108 'user_id ' => $ this ->authenticatedAs ->getAuthIdentifier (),
109109 'name ' => ActionLog::ACTION_UPDATED ,
110110 'actionable_type ' => Post::class,
111- 'actionable_id ' => (string )$ post ->id
111+ 'actionable_id ' => (string ) $ post ->id ,
112112 ]);
113113
114114 $ log = ActionLog::latest ()->first ();
0 commit comments