8000 [Bugfix] Fix bug in create resource test helper · startupengine/laravel-json-api@cc12581 · GitHub
[go: up one dir, main page]

Skip to content

Commit cc12581

Browse files
committed
[Bugfix] Fix bug in create resource test helper
1 parent e1705ee commit cc12581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Testing/MakesJsonApiRequests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ protected function doCreate(array $data, array $params = [], array $headers = []
178178
{
179179
$params = $this->addDefaultRouteParams($params);
180180
$route = $this->resolveRouteName();
181-
$uri = $this->linkTo()->index($route, $params);
181+
$uri = $this->linkTo()->create($route, $params);
182182

183183
return $this->jsonApi('POST', $uri, ['data' => $data], $headers);
184184
}

0 commit comments

Comments
 (0)
0