Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Commit

Permalink
allow headers in mutation test trait
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissm79 committed Jan 25, 2016
1 parent 83e1e14 commit 90b328e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Traits/MutationTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ trait MutationTestTrait
*
* @param string $mutationName
* @param array $input
* @param array $outputFields
* @param array $outputFields
* @param array $headers
* @return $this
*/
public function mutate($mutationName, array $input, array $outputFields = [])
public function mutate($mutationName, array $input, array $outputFields = [], array $headers = [])
{
$query = $this->generateMutationQuery(
$mutationName,
Expand All @@ -27,7 +28,7 @@ public function mutate($mutationName, array $input, array $outputFields = [])
return $this->post('graphql', [
'query' => $query,
'variables' => $variables
]);
], $headers);
}

/**
Expand Down

0 comments on commit 90b328e

Please sign in to comment.