Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit fadc088

Browse files
committed
MAGETWO-90390: GraphQlControllerTest:testOutputErrorsWithMessageCategoryAndTrace integration test failed with php 7.2
1 parent 228846c commit fadc088

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

dev/tests/integration/testsuite/Magento/GraphQl/Controller/GraphQlControllerTest.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class GraphQlControllerTest extends \PHPUnit\Framework\TestCase
3535
/** @var MetadataPool */
3636
private $metadataPool;
3737

38-
protected function setUp()
38+
protected function setUp() : void
3939
{
4040
$this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
4141
$this->graphql = $this->objectManager->get(\Magento\GraphQl\Controller\GraphQl::class);
@@ -44,9 +44,11 @@ protected function setUp()
4444
}
4545

4646
/**
47-
* Tests if a graphql schema is generated and request is dispatched and response generated
47+
* Test if a graphql schema is generated and request is dispatched and response generated
48+
*
49+
* @return void
4850
*/
49-
public function testDispatch()
51+
public function testDispatch() : void
5052
{
5153
/** @var ProductRepositoryInterface $productRepository */
5254
$productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
@@ -91,7 +93,12 @@ public function testDispatch()
9193
$this->assertEquals($output['data']['products']['items'][0]['name'], $product->getName());
9294
}
9395

94-
public function testOutputErrorsWithMessageCategoryAndTrace()
96+
/**
97+
* Test the errors on graphql output
98+
*
99+
* @return void
100+
*/
101+
public function testOutputErrorsWithMessageCategoryAndTrace() : void
95102
{
96103
$query
97104
= <<<QUERY

0 commit comments

Comments
 (0)