Skip to content

Commit

Permalink
ENGCOM-2778: Fixed return value for getGraphQlClient in API-functiona…
Browse files Browse the repository at this point in the history
…l tests #127
  • Loading branch information
Stanislav Idolov authored Aug 14, 2018
2 parents 05f9df7 + 103af2e commit 9174aa6
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ private function getAppCache()
private function getGraphQlClient()
{
if ($this->graphQlClient === null) {
return Bootstrap::getObjectManager()->get(\Magento\TestFramework\TestCase\GraphQl\Client::class);
} else {
$this->graphQlClient;
$this->graphQlClient = Bootstrap::getObjectManager()->get(
\Magento\TestFramework\TestCase\GraphQl\Client::class
);
}
return $this->graphQlClient;
}
}

0 comments on commit 9174aa6

Please sign in to comment.