@@ -55,15 +55,15 @@ public function can_render_component_as_html_or_json(): void
5555
5656 $ this ->browser ()
5757 ->throwExceptions ()
58- ->get ('/components /component1? ' .http_build_query ($ dehydrated ))
58+ ->get ('/_components /component1? ' .http_build_query ($ dehydrated ))
5959 ->assertSuccessful ()
6060 ->assertHeaderContains ('Content-Type ' , 'html ' )
6161 ->assertContains ('Prop1: ' .$ entity ->id )
6262 ->assertContains ('Prop2: 2021-03-05 9:23 ' )
6363 ->assertContains ('Prop3: value3 ' )
6464 ->assertContains ('Prop4: (none) ' )
6565
66- ->get ('/components /component1? ' .http_build_query ($ dehydrated ), ['headers ' => ['Accept ' => 'application/vnd.live-component+json ' ]])
66+ ->get ('/_components /component1? ' .http_build_query ($ dehydrated ), ['headers ' => ['Accept ' => 'application/vnd.live-component+json ' ]])
6767 ->assertSuccessful ()
6868 ->assertHeaderEquals ('Content-Type ' , 'application/vnd.live-component+json ' )
6969 ->assertJsonMatches ('keys(@) ' , ['html ' , 'data ' ])
@@ -99,26 +99,26 @@ public function can_execute_component_action(): void
9999
100100 $ this ->browser ()
101101 ->throwExceptions ()
102- ->get ('/components /component2? ' .http_build_query ($ dehydrated ))
102+ ->get ('/_components /component2? ' .http_build_query ($ dehydrated ))
103103 ->assertSuccessful ()
104104 ->assertHeaderContains ('Content-Type ' , 'html ' )
105105 ->assertContains ('Count: 1 ' )
106106 ->use (function (HtmlResponse $ response ) use (&$ token ) {
107107 // get a valid token to use for actions
108108 $ token = $ response ->crawler ()->filter ('div ' )->first ()->attr ('data-live-csrf-value ' );
109109 })
110- ->post ('/components /component2/increase? ' .http_build_query ($ dehydrated ), [
110+ ->post ('/_components /component2/increase? ' .http_build_query ($ dehydrated ), [
111111 'headers ' => ['X-CSRF-TOKEN ' => $ token ]
112112 ])
113113 ->assertSuccessful ()
114114 ->assertHeaderContains ('Content-Type ' , 'html ' )
115115 ->assertContains ('Count: 2 ' )
116116
117- ->get ('/components /component2? ' .http_build_query ($ dehydrated ), ['headers ' => ['Accept ' => 'application/vnd.live-component+json ' ]])
117+ ->get ('/_components /component2? ' .http_build_query ($ dehydrated ), ['headers ' => ['Accept ' => 'application/vnd.live-component+json ' ]])
118118 ->assertSuccessful ()
119119 ->assertJsonMatches ('data.count ' , 1 )
120120 ->assertJsonMatches ("contains(html, 'Count: 1') " , true )
121- ->post ('/components /component2/increase? ' .http_build_query ($ dehydrated ), [
121+ ->post ('/_components /component2/increase? ' .http_build_query ($ dehydrated ), [
122122 'headers ' => [
123123 'Accept ' => 'application/vnd.live-component+json ' ,
124124 'X-CSRF-TOKEN ' => $ token ,
@@ -136,7 +136,7 @@ public function can_execute_component_action(): void
136136 public function cannot_execute_component_action_for_get_request (): void
137137 {
138138 $ this ->browser ()
139- ->get ('/components /component2/increase ' )
139+ ->get ('/_components /component2/increase ' )
140140 ->assertStatus (405 )
141141 ;
142142 }
@@ -147,7 +147,7 @@ public function cannot_execute_component_action_for_get_request(): void
147147 public function missing_csrf_token_for_component_action_fails (): void
148148 {
149149 $ this ->browser ()
150- ->post ('/components /component2/increase ' )
150+ ->post ('/_components /component2/increase ' )
151151 ->assertStatus (400 )
152152 ;
153153 }
@@ -158,7 +158,7 @@ public function missing_csrf_token_for_component_action_fails(): void
158158 public function invalid_csrf_token_for_component_action_fails (): void
159159 {
160160 $ this ->browser ()
161- ->post ('/components /component2/increase ' , [
161+ ->post ('/_components /component2/increase ' , [
162162 'headers ' => ['X-CSRF-TOKEN ' => 'invalid ' ]
163163 ])
164164 ->assertStatus (400 )
@@ -187,7 +187,7 @@ public function before_re_render_hook_only_executed_during_ajax(): void
187187 ->visit ('/render-template/template1 ' )
188188 ->assertSuccessful ()
189189 ->assertSee ('BeforeReRenderCalled: No ' )
190- ->get ('/components /component2? ' .http_build_query ($ dehydrated ))
190+ ->get ('/_components /component2? ' .http_build_query ($ dehydrated ))
191191 ->assertSuccessful ()
192192 ->assertSee ('BeforeReRenderCalled: Yes ' )
193193 ;
@@ -214,19 +214,19 @@ public function can_redirect_from_component_action(): void
214214
215215 $ this ->browser ()
216216 ->throwExceptions ()
217- ->get ('/components /component2? ' .http_build_query ($ dehydrated ))
217+ ->get ('/_components /component2? ' .http_build_query ($ dehydrated ))
218218 ->assertSuccessful ()
219219 ->use (function (HtmlResponse $ response ) use (&$ token ) {
220220 // get a valid token to use for actions
221221 $ token = $ response ->crawler ()->filter ('div ' )->first ()->attr ('data-live-csrf-value ' );
222222 })
223223 ->interceptRedirects ()
224- ->post ('/components /component2/redirect? ' .http_build_query ($ dehydrated ), [
224+ ->post ('/_components /component2/redirect? ' .http_build_query ($ dehydrated ), [
225225 'headers ' => ['X-CSRF-TOKEN ' => $ token ]
226226 ])
227227 ->assertRedirectedTo ('/ ' )
228228
229- ->post ('/components /component2/redirect? ' .http_build_query ($ dehydrated ), [
229+ ->post ('/_components /component2/redirect? ' .http_build_query ($ dehydrated ), [
230230 'headers ' => [
231231 'Accept ' => 'application/json ' ,
232232 'X-CSRF-TOKEN ' => $ token ,
0 commit comments