Skip to content

Commit

Permalink
Add extend Nullable overriden by NonNull tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Dec 26, 2017
1 parent f7deecb commit 9d7dcea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Compiler/ExtendTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function provider(): array
}
extend type Test @deprecated(reason: "Test") {
id(arg: String): ID
id(arg: String): ID!
updatedAt: DateTime
}
GraphQL;
Expand Down Expand Up @@ -94,6 +94,7 @@ public function testTypeArguments(Document $document): void

$field = $type->getField('id');
static::assertNotNull($field);
static::assertTrue($field->isNonNull());

static::assertTrue($field->hasArgument('arg'));
static::assertNotNull($field->getArgument('arg'));
Expand Down

0 comments on commit 9d7dcea

Please sign in to comment.