Skip to content

Commit 5a0da87

Browse files
authored
Merge pull request #44 from mistraloz/support-graphqlite-v5
Support for GraphQLite v5
2 parents 1c2a122 + 117d5d3 commit 5a0da87

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
/composer.lock
44
/src/Tests/
55
/build/
6-
/phpunit.xml
6+
/phpunit.xml
7+
/tdbm.lock.yml

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"thecodingmachine/tdbm": "~5.3.0",
1313
"symfony/filesystem": "^2.0 || ^3.0 || ^4.0 || ^5.0",
1414
"psr/container": "^1",
15-
"thecodingmachine/graphqlite": "^4",
15+
"thecodingmachine/graphqlite": "^5",
1616
"thecodingmachine/tdbm-fluid-schema-builder": "^1",
1717
"doctrine/dbal": "^2.9.2"
1818
},
@@ -34,7 +34,7 @@
3434
},
3535
"extra": {
3636
"branch-alias": {
37-
"dev-master": "4.2.x-dev"
37+
"dev-master": "5.0.x-dev"
3838
}
3939
},
4040
"minimum-stability": "dev",

tests/GraphQLTypeGeneratorTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
use Doctrine\DBAL\DriverManager;
1212
use function file_get_contents;
1313
use function file_put_contents;
14-
use GraphQL\Error\Debug;
1514
use GraphQL\GraphQL;
15+
use GraphQL\Error\DebugFlag;
1616
use GraphQL\Type\Definition\InputType;
1717
use GraphQL\Type\Definition\ObjectType;
1818
use GraphQL\Type\Definition\Type;
@@ -543,7 +543,7 @@ public function testQuery()
543543
}
544544
EOF;
545545

546-
$response = GraphQL::executeQuery($schema, $introspectionQuery)->toArray(Debug::RETHROW_UNSAFE_EXCEPTIONS | Debug::RETHROW_INTERNAL_EXCEPTIONS);
546+
$response = GraphQL::executeQuery($schema, $introspectionQuery)->toArray(DebugFlag::RETHROW_UNSAFE_EXCEPTIONS | DebugFlag::RETHROW_INTERNAL_EXCEPTIONS);
547547
$this->assertTrue(isset($response['data']['__schema']['queryType']['name']));
548548

549549
$introspectionQuery2 = <<<EOF
@@ -562,7 +562,7 @@ public function testQuery()
562562
}
563563
EOF;
564564

565-
$response = GraphQL::executeQuery($schema, $introspectionQuery2)->toArray(Debug::RETHROW_UNSAFE_EXCEPTIONS | Debug::RETHROW_INTERNAL_EXCEPTIONS);
565+
$response = GraphQL::executeQuery($schema, $introspectionQuery2)->toArray(DebugFlag::RETHROW_UNSAFE_EXCEPTIONS | DebugFlag::RETHROW_INTERNAL_EXCEPTIONS);
566566
$this->assertSame('User', $response['data']['__type']['name']);
567567
$this->assertSame('OBJECT', $response['data']['__type']['kind']);
568568
$this->assertSame('id', $response['data']['__type']['fields'][0]['name']);
@@ -588,7 +588,7 @@ public function testQuery()
588588
}
589589
}
590590
EOF;
591-
$response = GraphQL::executeQuery($schema, $introspectionQuery3)->toArray(Debug::RETHROW_UNSAFE_EXCEPTIONS | Debug::RETHROW_INTERNAL_EXCEPTIONS);
591+
$response = GraphQL::executeQuery($schema, $introspectionQuery3)->toArray(DebugFlag::RETHROW_UNSAFE_EXCEPTIONS | DebugFlag::RETHROW_INTERNAL_EXCEPTIONS);
592592
$this->assertSame('John Smith', $response['data']['users'][0]['name']);
593593
$this->assertSame('Admins', $response['data']['users'][0]['roles'][0]['name']);
594594

@@ -600,7 +600,7 @@ public function testQuery()
600600
}
601601
}
602602
EOF;
603-
$response = GraphQL::executeQuery($schema, $query4)->toArray(Debug::RETHROW_UNSAFE_EXCEPTIONS | Debug::RETHROW_INTERNAL_EXCEPTIONS);
603+
$response = GraphQL::executeQuery($schema, $query4)->toArray(DebugFlag::RETHROW_UNSAFE_EXCEPTIONS | DebugFlag::RETHROW_INTERNAL_EXCEPTIONS);
604604
$this->assertSame('John Smith', $response['data']['user']['name']);
605605
}
606606

@@ -638,7 +638,7 @@ public function testResultIteratorType()
638638
}
639639
}
640640
EOF;
641-
$response = GraphQL::executeQuery($schema, $query)->toArray(Debug::RETHROW_UNSAFE_EXCEPTIONS | Debug::RETHROW_INTERNAL_EXCEPTIONS);
641+
$response = GraphQL::executeQuery($schema, $query)->toArray(DebugFlag::RETHROW_UNSAFE_EXCEPTIONS | DebugFlag::RETHROW_INTERNAL_EXCEPTIONS);
642642

643643
$this->assertSame([
644644
'data' =>

0 commit comments

Comments
 (0)