Fixed broken build

This commit is contained in:
Vladimir Razuvaev 2017-08-13 23:24:23 +07:00
parent 34eae0b891
commit ed3591c1a9
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class HugeSchemaBench
private function createLazySchema() private function createLazySchema()
{ {
return new Schema( return new Schema(
\GraphQL\Config::create() \GraphQL\Type\SchemaConfig::create()
->setQuery($this->schemaBuilder->buildQueryType()) ->setQuery($this->schemaBuilder->buildQueryType())
// ->setDescriptor($this->descriptor) // ->setDescriptor($this->descriptor)
->setTypeLoader(function($name) { ->setTypeLoader(function($name) {

View File

@ -814,7 +814,7 @@ class ValidationTest extends \PHPUnit_Framework_TestCase
$schema = $this->schemaWithFieldType(new ObjectType([ $schema = $this->schemaWithFieldType(new ObjectType([
'name' => 'SomeObject', 'name' => 'SomeObject',
'interfaces' => function () use ($NonUniqInterface, $AnotherInterface, $NonUniqInterface) { 'interfaces' => function () use ($NonUniqInterface, $AnotherInterface) {
return [$NonUniqInterface, $AnotherInterface, $NonUniqInterface]; return [$NonUniqInterface, $AnotherInterface, $NonUniqInterface];
}, },
'fields' => ['f' => ['type' => Type::string()]] 'fields' => ['f' => ['type' => Type::string()]]