Skip to content

Commit

Permalink
Merge pull request #23 from mcg-web/allow_graphql-php_0.12
Browse files Browse the repository at this point in the history
Allow webonyx/graphql-php 0.12
  • Loading branch information
mcg-web authored May 30, 2018
2 parents f6881be + 147d139 commit acea33b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
],
"config" : {
"sort-packages": true,
"bin-dir": "bin"
"bin-dir": "bin",
"preferred-install": {
"webonyx/graphql-php": "source"
}
},
"require": {
"php": "^5.4|~7.0",
"webonyx/graphql-php": "^0.11.2"
"php": "^5.5|~7.0",
"webonyx/graphql-php": "^0.11.2|^0.12.0"
},
"require-dev": {
"fabpot/php-cs-fixer": "^1.11",
Expand Down
4 changes: 3 additions & 1 deletion tests/AbstractStarWarsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Overblog\GraphQLGenerator\Tests;

use GraphQL\Error\Debug;
use GraphQL\GraphQL;
use GraphQL\Type\Schema;
use Overblog\GraphQLGenerator\Tests\Generator\AbstractTypeGeneratorTest;
Expand Down Expand Up @@ -45,7 +46,8 @@ public function setUp()
*/
protected function assertValidQuery($query, $expected, $variables = null)
{
$actual = GraphQL::executeQuery($this->schema, $query, null, null, $variables)->toArray();
$actual = GraphQL::executeQuery($this->schema, $query, null, null, $variables)
->toArray(Debug::INCLUDE_DEBUG_MESSAGE|Debug::INCLUDE_TRACE);
$expected = ['data' => $expected];
$this->assertEquals($expected, $actual, json_encode($actual));
}
Expand Down

0 comments on commit acea33b

Please sign in to comment.