Skip to content

Commit

Permalink
Fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
mcg-web committed Nov 6, 2017
1 parent 7ee5852 commit a919fa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/AbstractStarWarsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function setUp()
*/
protected function assertValidQuery($query, $expected, $variables = null)
{
$actual = GraphQL::execute($this->schema, $query, null, null, $variables);
$actual = GraphQL::executeQuery($this->schema, $query, null, null, $variables)->toArray();
$expected = ['data' => $expected];
$this->assertEquals($expected, $actual, json_encode($actual));
}
Expand Down
2 changes: 1 addition & 1 deletion tests/StarWarsIntrospectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function testAllowsQueryingTheSchemaForTypes()
]
];

$actual = GraphQL::execute($this->schema, $query);
$actual = GraphQL::executeQuery($this->schema, $query)->toArray();
$this->sortSchemaEntry($actual, 'types', 'name');
$this->sortSchemaEntry($expected, 'types', 'name');
$expected = ['data' => $expected];
Expand Down

0 comments on commit a919fa1

Please sign in to comment.