This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
dev/tests/integration/testsuite/Magento/GraphQl/Controller Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class GraphQlControllerTest extends \PHPUnit\Framework\TestCase
35
35
/** @var MetadataPool */
36
36
private $ metadataPool ;
37
37
38
- protected function setUp ()
38
+ protected function setUp () : void
39
39
{
40
40
$ this ->objectManager = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ();
41
41
$ this ->graphql = $ this ->objectManager ->get (\Magento \GraphQl \Controller \GraphQl::class);
@@ -44,9 +44,11 @@ protected function setUp()
44
44
}
45
45
46
46
/**
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
48
50
*/
49
- public function testDispatch ()
51
+ public function testDispatch () : void
50
52
{
51
53
/** @var ProductRepositoryInterface $productRepository */
52
54
$ productRepository = $ this ->objectManager ->get (ProductRepositoryInterface::class);
@@ -91,7 +93,12 @@ public function testDispatch()
91
93
$ this ->assertEquals ($ output ['data ' ]['products ' ]['items ' ][0 ]['name ' ], $ product ->getName ());
92
94
}
93
95
94
- public function testOutputErrorsWithMessageCategoryAndTrace ()
96
+ /**
97
+ * Test the errors on graphql output
98
+ *
99
+ * @return void
100
+ */
101
+ public function testOutputErrorsWithMessageCategoryAndTrace () : void
95
102
{
96
103
$ query
97
104
= <<<QUERY
You can’t perform that action at this time.
0 commit comments