Skip to content

Commit

Permalink
Update TestSchema.php
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax authored Apr 26, 2020
1 parent fd720be commit 1780de6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Spec/TestSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ public static function getInput() : \Graphpinator\Type\InputType
{
protected const NAME = 'TestInput';

public function __construct()
protected function getFieldDefinition() : \Graphpinator\Argument\ArgumentSet
{
parent::__construct(new \Graphpinator\Argument\ArgumentSet([
return new \Graphpinator\Argument\ArgumentSet([
new \Graphpinator\Argument\Argument('name', \Graphpinator\Type\Container\Container::String()->notNull()),
new \Graphpinator\Argument\Argument('inner', TestSchema::getInnerInput()),
new \Graphpinator\Argument\Argument('innerList', TestSchema::getInnerInput()->notNullList()),
new \Graphpinator\Argument\Argument('innerNotNull', TestSchema::getInnerInput()->notNull()),
]));
]);
}
};
}
Expand All @@ -196,13 +196,13 @@ public static function getInnerInput() : \Graphpinator\Type\InputType
{
protected const NAME = 'TestInnerInput';

public function __construct()
protected function getFieldDefinition() : \Graphpinator\Argument\ArgumentSet
{
parent::__construct(new \Graphpinator\Argument\ArgumentSet([
return new \Graphpinator\Argument\ArgumentSet([
new \Graphpinator\Argument\Argument('name', \Graphpinator\Type\Container\Container::String()->notNull()),
new \Graphpinator\Argument\Argument('number', \Graphpinator\Type\Container\Container::Int()->notNullList()),
new \Graphpinator\Argument\Argument('bool', \Graphpinator\Type\Container\Container::Boolean()),
]));
]);
}
};
}
Expand Down

0 comments on commit 1780de6

Please sign in to comment.