File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Inertia \Inertia ;
6
6
use Illuminate \Support \Str ;
7
- use Illuminate \Support \Facades \File ;
8
7
use Arcanist \Contracts \ResponseRenderer ;
9
8
use Illuminate \Contracts \Support \Renderable ;
10
9
use Illuminate \Contracts \Support \Responsable ;
11
10
use Symfony \Component \HttpFoundation \Response ;
12
- use Arcanist \Exception \StepTemplateNotFoundException ;
13
11
14
12
class InertiaResponseRenderer implements ResponseRenderer
15
13
{
@@ -23,11 +21,6 @@ public function renderStep(
23
21
array $ data = []
24
22
): Response | Responsable | Renderable {
25
23
$ component = $ this ->componentBasePath . '/ ' . Str::studly ($ wizard ::$ slug ) . '/ ' . Str::studly ($ step ->slug );
26
- $ componentPath = resource_path ('js/Pages/ ' . $ component . '.vue ' );
27
-
28
- if (!File::exists ($ componentPath )) {
29
- throw new StepTemplateNotFoundException ($ step );
30
- }
31
24
32
25
$ viewData = [
33
26
'arcanist ' => array_filter ([
Original file line number Diff line number Diff line change @@ -145,20 +145,6 @@ public function it_redirects_with_an_error(): void
145
145
$ response ->assertSessionHasErrors ('wizard ' );
146
146
}
147
147
148
- /** @test */
149
- public function it_throws_an_exception_if_the_template_does_not_exist (): void
150
- {
151
- File::shouldReceive ('exists ' )
152
- ->with (resource_path ('js/Pages/Wizards/InertiaWizard/InertiaStep.vue ' ))
153
- ->andReturnFalse ();
154
-
155
- $ this ->expectException (StepTemplateNotFoundException::class);
156
- $ this ->expectErrorMessage ('No template found for step [inertia-step]. ' );
157
-
158
- $ this ->makeRenderer ()
159
- ->renderStep ($ this ->step , $ this ->wizard , []);
160
- }
161
-
162
148
protected function makeRenderer (): ResponseRenderer
163
149
{
164
150
return new InertiaResponseRenderer ('Wizards ' );
You can’t perform that action at this time.
0 commit comments