Skip to content

Commit 2006e2a

Browse files
committed
Use constants from Header
1 parent 35b93f2 commit 2006e2a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Testing/PartialRequest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Foundation\Application;
66
use Illuminate\Foundation\Testing\Concerns\MakesHttpRequests;
77
use Illuminate\Testing\TestResponse;
8+
use Inertia\Support\Header;
89

910
class PartialRequest
1011
{
@@ -21,9 +22,9 @@ public function __construct(
2122
public function __invoke(): TestResponse
2223
{
2324
return $this->get($this->url, [
24-
'X-Inertia-Partial-Data' => $this->props,
25-
'X-Inertia-Partial-Component' => $this->component,
26-
'X-Inertia-Version' => $this->version,
25+
Header::PARTIAL_ONLY => $this->props,
26+
Header::PARTIAL_COMPONENT => $this->component,
27+
Header::VERSION => $this->version,
2728
]);
2829
}
2930
}

0 commit comments

Comments
 (0)