Skip to content

Commit 9174aa6

Browse files
author
Stanislav Idolov
authored
ENGCOM-2778: Fixed return value for getGraphQlClient in API-functional tests #127
2 parents 05f9df7 + 103af2e commit 9174aa6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQlAbstract.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ private function getAppCache()
9292
private function getGraphQlClient()
9393
{
9494
if ($this->graphQlClient === null) {
95-
return Bootstrap::getObjectManager()->get(\Magento\TestFramework\TestCase\GraphQl\Client::class);
96-
} else {
97-
$this->graphQlClient;
95+
$this->graphQlClient = Bootstrap::getObjectManager()->get(
96+
\Magento\TestFramework\TestCase\GraphQl\Client::class
97+
);
9898
}
99+
return $this->graphQlClient;
99100
}
100101
}

0 commit comments

Comments
 (0)