@@ -38,7 +38,7 @@ protected function setUp(): void
3838 public function test_relation_controller_handles_index (): void
3939 {
4040 $ this ->actingAs ($ this ->admin )
41- ->get ('/root/users/ ' .$ this ->admin ->getKey ().'/fields/uploads ' )
41+ ->get ('/root/resources/ users/ ' .$ this ->admin ->getKey ().'/fields/uploads ' )
4242 ->assertOk ()
4343 ->assertViewIs ('root::resources.index ' )
4444 ->assertViewHas ($ this ->field ->toIndex ($ this ->app ['request ' ], $ this ->admin ));
@@ -47,7 +47,7 @@ public function test_relation_controller_handles_index(): void
4747 public function test_relation_controller_handles_create (): void
4848 {
4949 $ this ->actingAs ($ this ->admin )
50- ->get ('/root/users/ ' .$ this ->admin ->getKey ().'/fields/uploads/create ' )
50+ ->get ('/root/resources/ users/ ' .$ this ->admin ->getKey ().'/fields/uploads/create ' )
5151 ->assertOk ()
5252 ->assertViewIs ('root::resources.form ' )
5353 ->assertViewHas ($ this ->field ->toCreate ($ this ->app ['request ' ], $ this ->admin ));
@@ -56,7 +56,7 @@ public function test_relation_controller_handles_create(): void
5656 public function test_relation_controller_handles_store (): void
5757 {
5858 $ this ->actingAs ($ this ->admin )
59- ->post ('/root/users/ ' .$ this ->admin ->getKey ().'/fields/uploads ' , $ data = Medium::factory ()->make ()->toArray ())
59+ ->post ('/root/resources/ users/ ' .$ this ->admin ->getKey ().'/fields/uploads ' , $ data = Medium::factory ()->make ()->toArray ())
6060 ->assertRedirect ()
6161 ->assertSessionHas ('alerts.relation-created ' );
6262
@@ -72,7 +72,7 @@ public function test_relation_controller_handles_show(): void
7272 });
7373
7474 $ this ->actingAs ($ this ->admin )
75- ->get ('/root/users/ ' .$ this ->admin ->getKey ().'/fields/uploads/ ' .$ this ->medium ->getKey ())
75+ ->get ('/root/resources/ users/ ' .$ this ->admin ->getKey ().'/fields/uploads/ ' .$ this ->medium ->getKey ())
7676 ->assertOk ()
7777 ->assertViewIs ('root::resources.show ' )
7878 ->assertViewHas ($ this ->field ->toShow ($ this ->app ['request ' ], $ this ->admin , $ this ->medium ));
@@ -85,7 +85,7 @@ public function test_relation_controller_handles_edit(): void
8585 });
8686
8787 $ this ->actingAs ($ this ->admin )
88- ->get ('/root/users/ ' .$ this ->admin ->getKey ().'/fields/uploads/ ' .$ this ->medium ->getKey ().'/edit ' )
88+ ->get ('/root/resources/ users/ ' .$ this ->admin ->getKey ().'/fields/uploads/ ' .$ this ->medium ->getKey ().'/edit ' )
8989 ->assertOk ()
9090 ->assertViewIs ('root::resources.form ' )
9191 ->assertViewHas ($ this ->field ->toEdit ($ this ->app ['request ' ], $ this ->admin , $ this ->medium ));
@@ -99,7 +99,7 @@ public function test_relation_controller_handles_update(): void
9999
100100 $ this ->actingAs ($ this ->admin )
101101 ->patch (
102- '/root/users/ ' .$ this ->admin ->getKey ().'/fields/uploads/ ' .$ this ->medium ->getKey (),
102+ '/root/resources/ users/ ' .$ this ->admin ->getKey ().'/fields/uploads/ ' .$ this ->medium ->getKey (),
103103 array_merge ($ this ->medium ->toArray (), ['file_name ' => 'updated.png ' ])
104104 )
105105 ->assertRedirect ()
@@ -115,7 +115,7 @@ public function test_relation_controller_handles_destroy(): void
115115 });
116116
117117 $ this ->actingAs ($ this ->admin )
118- ->delete ('/root/users/ ' .$ this ->admin ->getKey ().'/fields/uploads/ ' .$ this ->medium ->getKey ())
118+ ->delete ('/root/resources/ users/ ' .$ this ->admin ->getKey ().'/fields/uploads/ ' .$ this ->medium ->getKey ())
119119 ->assertRedirect ()
120120 ->assertSessionHas ('alerts.relation-deleted ' );
121121
0 commit comments