@@ -69,11 +69,11 @@ public function test_json_response()
69
69
return view ('welcome ' );
70
70
})->name ('welcome1.name ' );
71
71
72
- HeyMan::whenYouVisitUrl (['welcome ' , 'welcome_ ' ])->always ()->response ()->json (['m ' => 'm ' ], 403 );
72
+ HeyMan::whenYouVisitUrl (['welcome ' , 'welcome_ ' ])->always ()->response ()->json (['m ' => 'm ' ], 403 );
73
73
HeyMan::whenYouVisitUrl ('welcome1 ' )->thisValueShouldAllow (true )->otherwise ()->weDenyAccess ();
74
74
app (StartGuarding::class)->start ();
75
75
76
- $ this ->get ('welcome ' )->assertJson (['m ' => 'm ' ])->assertStatus (403 );
76
+ $ this ->get ('welcome ' )->assertJson (['m ' => 'm ' ])->assertStatus (403 );
77
77
$ this ->get ('welcome1 ' )->assertStatus (200 );
78
78
}
79
79
@@ -101,10 +101,10 @@ public function test_we_respond_from()
101
101
HeyMan::whenYouVisitUrl ('welcome ' )
102
102
->thisValueShouldAllow (false )
103
103
->otherwise ()
104
- ->weRespondFrom (SomeClass::class.'@someMethod2 ' , ['p1 ' => 20 , 'p2 ' =>30 ]);
104
+ ->weRespondFrom (SomeClass::class.'@someMethod2 ' , ['p1 ' => 20 , 'p2 ' => 30 ]);
105
105
app (StartGuarding::class)->start ();
106
106
107
- $ this ->get ('welcome ' )->assertStatus (566 )->assertJson (['Wow ' => '50 ' ]);
107
+ $ this ->get ('welcome ' )->assertStatus (566 )->assertJson (['Wow ' => '50 ' ]);
108
108
}
109
109
110
110
public function test_we_respond_from_2 ()
@@ -118,7 +118,7 @@ public function test_we_respond_from_2()
118
118
119
119
app (StartGuarding::class)->start ();
120
120
121
- $ this ->get ('welcome ' )->assertStatus (201 )->assertJson (['Wow ' => '50 ' ]);
121
+ $ this ->get ('welcome ' )->assertStatus (201 )->assertJson (['Wow ' => '50 ' ]);
122
122
}
123
123
124
124
public function test_we_respond_from_3 ()
0 commit comments