88
99class AssertableInertiaTest extends TestCase
1010{
11- /** @test */
12- public function the_view_is_served_by_inertia (): void
11+ public function test_the_view_is_served_by_inertia (): void
1312 {
1413 $ response = $ this ->makeMockRequest (
1514 Inertia::render ('foo ' )
@@ -18,8 +17,7 @@ public function the_view_is_served_by_inertia(): void
1817 $ response ->assertInertia ();
1918 }
2019
21- /** @test */
22- public function the_view_is_not_served_by_inertia (): void
20+ public function test_the_view_is_not_served_by_inertia (): void
2321 {
2422 $ response = $ this ->makeMockRequest (view ('welcome ' ));
2523 $ response ->assertOk (); // Make sure we can render the built-in Orchestra 'welcome' view..
@@ -30,8 +28,7 @@ public function the_view_is_not_served_by_inertia(): void
3028 $ response ->assertInertia ();
3129 }
3230
33- /** @test */
34- public function the_component_matches (): void
31+ public function test_the_component_matches (): void
3532 {
3633 $ response = $ this ->makeMockRequest (
3734 Inertia::render ('foo ' )
@@ -42,8 +39,7 @@ public function the_component_matches(): void
4239 });
4340 }
4441
45- /** @test */
46- public function the_component_does_not_match (): void
42+ public function test_the_component_does_not_match (): void
4743 {
4844 $ response = $ this ->makeMockRequest (
4945 Inertia::render ('foo ' )
@@ -57,8 +53,7 @@ public function the_component_does_not_match(): void
5753 });
5854 }
5955
60- /** @test */
61- public function the_component_exists_on_the_filesystem (): void
56+ public function test_the_component_exists_on_the_filesystem (): void
6257 {
6358 $ response = $ this ->makeMockRequest (
6459 Inertia::render ('Stubs/ExamplePage ' )
@@ -70,8 +65,7 @@ public function the_component_exists_on_the_filesystem(): void
7065 });
7166 }
7267
73- /** @test */
74- public function the_component_does_not_exist_on_the_filesystem (): void
68+ public function test_the_component_does_not_exist_on_the_filesystem (): void
7569 {
7670 $ response = $ this ->makeMockRequest (
7771 Inertia::render ('foo ' )
@@ -86,8 +80,7 @@ public function the_component_does_not_exist_on_the_filesystem(): void
8680 });
8781 }
8882
89- /** @test */
90- public function it_can_force_enable_the_component_file_existence (): void
83+ public function test_it_can_force_enable_the_component_file_existence (): void
9184 {
9285 $ response = $ this ->makeMockRequest (
9386 Inertia::render ('foo ' )
@@ -102,8 +95,7 @@ public function it_can_force_enable_the_component_file_existence(): void
10295 });
10396 }
10497
105- /** @test */
106- public function it_can_force_disable_the_component_file_existence_check (): void
98+ public function test_it_can_force_disable_the_component_file_existence_check (): void
10799 {
108100 $ response = $ this ->makeMockRequest (
109101 Inertia::render ('foo ' )
@@ -116,8 +108,7 @@ public function it_can_force_disable_the_component_file_existence_check(): void
116108 });
117109 }
118110
119- /** @test */
120- public function the_component_does_not_exist_on_the_filesystem_when_it_does_not_exist_relative_to_any_of_the_given_paths (): void
111+ public function test_the_component_does_not_exist_on_the_filesystem_when_it_does_not_exist_relative_to_any_of_the_given_paths (): void
121112 {
122113 $ response = $ this ->makeMockRequest (
123114 Inertia::render ('fixtures/ExamplePage ' )
@@ -133,8 +124,7 @@ public function the_component_does_not_exist_on_the_filesystem_when_it_does_not_
133124 });
134125 }
135126
136- /** @test */
137- public function the_component_does_not_exist_on_the_filesystem_when_it_does_not_have_one_of_the_configured_extensions (): void
127+ public function test_the_component_does_not_exist_on_the_filesystem_when_it_does_not_have_one_of_the_configured_extensions (): void
138128 {
139129 $ response = $ this ->makeMockRequest (
140130 Inertia::render ('fixtures/ExamplePage ' )
@@ -150,8 +140,7 @@ public function the_component_does_not_exist_on_the_filesystem_when_it_does_not_
150140 });
151141 }
152142
153- /** @test */
154- public function the_page_url_matches (): void
143+ public function test_the_page_url_matches (): void
155144 {
156145 $ response = $ this ->makeMockRequest (
157146 Inertia::render ('foo ' )
@@ -162,8 +151,7 @@ public function the_page_url_matches(): void
162151 });
163152 }
164153
165- /** @test */
166- public function the_page_url_does_not_match (): void
154+ public function test_the_page_url_does_not_match (): void
167155 {
168156 $ response = $ this ->makeMockRequest (
169157 Inertia::render ('foo ' )
@@ -177,8 +165,7 @@ public function the_page_url_does_not_match(): void
177165 });
178166 }
179167
180- /** @test */
181- public function the_asset_version_matches (): void
168+ public function test_the_asset_version_matches (): void
182169 {
183170 Inertia::version ('example-version ' );
184171
@@ -191,8 +178,7 @@ public function the_asset_version_matches(): void
191178 });
192179 }
193180
194- /** @test */
195- public function the_asset_version_does_not_match (): void
181+ public function test_the_asset_version_does_not_match (): void
196182 {
197183 Inertia::version ('example-version ' );
198184
0 commit comments