Skip to content

Commit ca3327c

Browse files
committed
tests: fix definition of some args missing the type key
See webonyx/graphql-php#684 (comment)
1 parent 1da306f commit ca3327c

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

tests/Database/AuthorizeArgsTests/TestAuthorizationArgsQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function args(): array
2626
{
2727
return [
2828
'id' => [
29-
Type::nonNull(Type::ID()),
29+
'type' => Type::nonNull(Type::ID()),
3030
],
3131
];
3232
}

tests/Database/SelectFields/NestedRelationLoadingTests/PostType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function fields(): array
2727
'type' => Type::nonNull(Type::listOf(Type::nonNull(GraphQL::type('Comment')))),
2828
'args' => [
2929
'flag' => [
30-
Type::boolean(),
30+
'type' => Type::boolean(),
3131
],
3232
],
3333
'query' => function (array $args, HasMany $query): HasMany {

tests/Database/SelectFields/NestedRelationLoadingTests/UserType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function fields(): array
3030
'type' => Type::nonNull(Type::listOf(Type::nonNull(GraphQL::type('Post')))),
3131
'args' => [
3232
'flag' => [
33-
Type::boolean(),
33+
'type' => Type::boolean(),
3434
],
3535
],
3636
'query' => function (array $args, HasMany $query): HasMany {

tests/Database/SelectFields/QueryArgsAndContextTests/PostType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function fields(): array
2727
'type' => Type::nonNull(Type::listOf(Type::nonNull(GraphQL::type('Comment')))),
2828
'args' => [
2929
'flag' => [
30-
Type::boolean(),
30+
'type' => Type::boolean(),
3131
],
3232
],
3333
'query' => function (array $args, HasMany $query, GraphQLContext $ctx): HasMany {

tests/Database/SelectFields/QueryArgsAndContextTests/UserType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function fields(): array
3030
'type' => Type::nonNull(Type::listOf(Type::nonNull(GraphQL::type('Post')))),
3131
'args' => [
3232
'flag' => [
33-
Type::boolean(),
33+
'type' => Type::boolean(),
3434
],
3535
],
3636
'query' => function (array $args, HasMany $query, GraphQLContext $ctx): HasMany {

tests/Database/SelectFields/QueryArgsAndContextTests/UsersQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function args(): array
2222
{
2323
return [
2424
'flag' => [
25-
Type::boolean(),
25+
'type' => Type::boolean(),
2626
],
2727
'select' => [
2828
'type' => Type::boolean(),

0 commit comments

Comments
 (0)