You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/Database/SelectFields/NestedRelationLoadingTests/NestedRelationLoadingTest.php
+7-14Lines changed: 7 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -56,8 +56,7 @@ public function testQueryNoSelectFields(): void
56
56
57
57
$result = GraphQL::query($graphql);
58
58
59
-
$this->assertSqlQueries(
60
-
<<<'SQL'
59
+
$this->assertSqlQueries(<<<'SQL'
61
60
select * from "users" order by "users"."id" asc;
62
61
select * from "posts" where "posts"."user_id" = ? and "posts"."user_id" is not null order by "posts"."id" asc;
63
62
select * from "comments" where "comments"."post_id" = ? and "comments"."post_id" is not null order by "comments"."id" asc;
@@ -198,8 +197,7 @@ public function testQuerySelect(): void
198
197
199
198
$result = GraphQL::query($graphql);
200
199
201
-
$this->assertSqlQueries(
202
-
<<<'SQL'
200
+
$this->assertSqlQueries(<<<'SQL'
203
201
select "users"."id", "users"."name" from "users" order by "users"."id" asc;
204
202
select * from "posts" where "posts"."user_id" = ? and "posts"."user_id" is not null order by "posts"."id" asc;
205
203
select * from "comments" where "comments"."post_id" = ? and "comments"."post_id" is not null order by "comments"."id" asc;
@@ -340,8 +338,7 @@ public function testQueryWith(): void
340
338
341
339
$result = GraphQL::query($graphql);
342
340
343
-
$this->assertSqlQueries(
344
-
<<<'SQL'
341
+
$this->assertSqlQueries(<<<'SQL'
345
342
select * from "users" order by "users"."id" asc;
346
343
select "posts"."body", "posts"."id", "posts"."title", "posts"."user_id" from "posts" where "posts"."user_id" in (?, ?) order by "posts"."id" asc;
347
344
select "comments"."body", "comments"."id", "comments"."title", "comments"."post_id" from "comments" where "comments"."post_id" in (?, ?, ?, ?) order by "comments"."id" asc;
@@ -478,8 +475,7 @@ public function testQuerySelectAndWith(): void
478
475
479
476
$result = GraphQL::query($graphql);
480
477
481
-
$this->assertSqlQueries(
482
-
<<<'SQL'
478
+
$this->assertSqlQueries(<<<'SQL'
483
479
select "users"."id", "users"."name" from "users" order by "users"."id" asc;
484
480
select "posts"."body", "posts"."id", "posts"."title", "posts"."user_id" from "posts" where "posts"."user_id" in (?, ?) order by "posts"."id" asc;
485
481
select "comments"."body", "comments"."id", "comments"."title", "comments"."post_id" from "comments" where "comments"."post_id" in (?, ?, ?, ?) order by "comments"."id" asc;
@@ -629,8 +625,7 @@ public function testQuerySelectAndWithAndSubArgs(): void
629
625
630
626
$result = GraphQL::query($graphql);
631
627
632
-
$this->assertSqlQueries(
633
-
<<<'SQL'
628
+
$this->assertSqlQueries(<<<'SQL'
634
629
select "users"."id", "users"."name" from "users" order by "users"."id" asc;
635
630
select "posts"."body", "posts"."id", "posts"."title", "posts"."user_id" from "posts" where "posts"."user_id" in (?, ?) and "posts"."flag" = ? order by "posts"."id" asc;
636
631
select "comments"."body", "comments"."id", "comments"."title", "comments"."post_id" from "comments" where "comments"."post_id" in (?, ?) order by "comments"."id" asc;
@@ -756,8 +751,7 @@ public function testQuerySelectAndWithAndNestedSubArgs(): void
756
751
757
752
$result = GraphQL::query($graphql);
758
753
759
-
$this->assertSqlQueries(
760
-
<<<'SQL'
754
+
$this->assertSqlQueries(<<<'SQL'
761
755
select "users"."id", "users"."name" from "users" order by "users"."id" asc;
762
756
select "posts"."body", "posts"."id", "posts"."title", "posts"."user_id" from "posts" where "posts"."user_id" in (?, ?) and "posts"."flag" = ? order by "posts"."id" asc;
763
757
select "comments"."body", "comments"."id", "comments"."title", "comments"."post_id" from "comments" where "comments"."post_id" in (?, ?) and "comments"."flag" = ? order by "comments"."id" asc;
@@ -840,8 +834,7 @@ public function testRelationshipAlias(): void
840
834
841
835
$result = GraphQL::query($graphql);
842
836
843
-
$this->assertSqlQueries(
844
-
<<<'SQL'
837
+
$this->assertSqlQueries(<<<'SQL'
845
838
select "users"."id", "users"."name" from "users" order by "users"."id" asc;
846
839
select "posts"."body", "posts"."id", "posts"."title", "posts"."user_id" from "posts" where "posts"."user_id" in (?) and "posts"."flag" = ? order by "posts"."id" asc;
0 commit comments