Skip to content

Commit 77d8710

Browse files
committed
Upgrade to webonyx/graphql-php 0.13 and doctrine/orm 2.6
1 parent 65bf449 commit 77d8710

File tree

3 files changed

+47
-31
lines changed

3 files changed

+47
-31
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
}
2525
},
2626
"require": {
27-
"doctrine/orm": "^2.5",
27+
"doctrine/orm": "^2.6",
2828
"php": "^7.1",
29-
"webonyx/graphql-php": "^0.12.0",
29+
"webonyx/graphql-php": "^0.13.0",
3030
"psr/container": "^1.0"
3131
},
3232
"require-dev": {

composer.lock

Lines changed: 40 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/DefaultFieldResolverTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@
66

77
use GraphQL\Doctrine\DefaultFieldResolver;
88
use GraphQL\Doctrine\Definition\EntityID;
9+
use GraphQL\Type\Definition\ObjectType;
910
use GraphQL\Type\Definition\ResolveInfo;
11+
use GraphQL\Type\Schema;
1012
use GraphQLTests\Doctrine\Blog\Model\Special\DefaultValue;
1113
use GraphQLTests\Doctrine\Blog\Model\Special\IgnoredGetter;
1214

1315
final class DefaultFieldResolverTest extends \PHPUnit\Framework\TestCase
1416
{
1517
public function providerDefaultFieldResolver(): array
1618
{
17-
$entityID = new class() extends EntityID {
19+
$entityID = new class() extends EntityID
20+
{
1821
public function __construct()
1922
{
2023
}
@@ -54,7 +57,7 @@ public function getEntity()
5457
public function testDefaultFieldResolver($expected, $source, string $fieldName, array $args = []): void
5558
{
5659
$resolver = new DefaultFieldResolver();
57-
$info = new ResolveInfo(['fieldName' => $fieldName]);
60+
$info = new ResolveInfo($fieldName, null, null, new ObjectType(['name' => 'foo']), null, new Schema([]), null, null, null, null);
5861
$actual = $resolver($source, $args, null, $info);
5962
self::assertSame($expected, $actual);
6063
}

0 commit comments

Comments
 (0)