File tree Expand file tree Collapse file tree 3 files changed +6
-16
lines changed
tests/Database/SelectFields/PrimaryKeyTests Expand file tree Collapse file tree 3 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 6
6
use GraphQL \Type \Definition \Type ;
7
7
use Rebing \GraphQL \Support \Facades \GraphQL ;
8
8
use Rebing \GraphQL \Support \InterfaceType ;
9
- use Rebing \GraphQL \Support \Type as GraphQLType ;
10
- use Rebing \GraphQL \Tests \Support \Models \Post ;
11
9
12
10
class ModelInterfaceType extends InterfaceType
13
11
{
Original file line number Diff line number Diff line change 3
3
declare (strict_types = 1 );
4
4
namespace Rebing \GraphQL \Tests \Database \SelectFields \PrimaryKeyTests ;
5
5
6
- use Rebing \GraphQL \Tests \Database \SelectFields \PrimaryKeyTests \ModelInterfaceType ;
7
- use Rebing \GraphQL \Tests \Database \SelectFields \PrimaryKeyTests \PrimaryKeyInterfacePaginationQuery ;
8
6
use Rebing \GraphQL \Tests \Support \Models \Comment ;
9
7
use Rebing \GraphQL \Tests \Support \Models \Post ;
10
8
use Rebing \GraphQL \Tests \Support \Traits \SqlAssertionTrait ;
@@ -135,12 +133,12 @@ public function testInterfacePagination(): void
135
133
136
134
$ result = $ this ->httpGraphql ($ query );
137
135
138
- // $this->assertSqlQueries(
139
- // <<<'SQL'
140
- //select count(*) as aggregate from "posts";
141
- //select "posts"."id" from "posts" limit 1 offset 0;
142
- //SQL
143
- // );
136
+ // $this->assertSqlQueries(
137
+ // <<<'SQL'
138
+ //select count(*) as aggregate from "posts";
139
+ //select "posts"."id" from "posts" limit 1 offset 0;
140
+ //SQL
141
+ // );
144
142
145
143
$ expectedResult = [
146
144
'data ' => [
Original file line number Diff line number Diff line change 3
3
declare (strict_types = 1 );
4
4
namespace Rebing \GraphQL \Tests \Database \SelectFields \PrimaryKeyTests ;
5
5
6
- use Closure ;
7
- use GraphQL \Type \Definition \ResolveInfo ;
8
6
use GraphQL \Type \Definition \Type ;
9
7
use Rebing \GraphQL \Support \Facades \GraphQL ;
10
- use Rebing \GraphQL \Support \Query ;
11
- use Rebing \GraphQL \Support \SelectFields ;
12
- use Rebing \GraphQL \Tests \Database \SelectFields \PrimaryKeyTests \PrimaryKeyPaginationQuery ;
13
- use Rebing \GraphQL \Tests \Support \Models \Post ;
14
8
15
9
class PrimaryKeyInterfacePaginationQuery extends PrimaryKeyPaginationQuery
16
10
{
You can’t perform that action at this time.
0 commit comments