We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 73-109 (lines=37) @@ | ||
| 70 | $this->assertGraphQL($query, $expectedData); |
|
| 71 | } |
|
| 72 | ||
| 73 | public function testWorksWithForwardConnectionArgs() |
|
| 74 | { |
|
| 75 | $query = <<<EOF |
|
| 76 | query FriendsQuery { |
|
| 77 | user { |
|
| 78 | friendsForward(first: 2) { |
|
| 79 | edges { |
|
| 80 | node { |
|
| 81 | name |
|
| 82 | } |
|
| 83 | } |
|
| 84 | } |
|
| 85 | } |
|
| 86 | } |
|
| 87 | EOF; |
|
| 88 | ||
| 89 | $expectedData = [ |
|
| 90 | 'user' => [ |
|
| 91 | 'friendsForward' => [ |
|
| 92 | 'edges' => [ |
|
| 93 | [ |
|
| 94 | 'node' => [ |
|
| 95 | 'name' => 'Nick', |
|
| 96 | ], |
|
| 97 | ], |
|
| 98 | [ |
|
| 99 | 'node' => [ |
|
| 100 | 'name' => 'Lee', |
|
| 101 | ], |
|
| 102 | ], |
|
| 103 | ], |
|
| 104 | ], |
|
| 105 | ], |
|
| 106 | ]; |
|
| 107 | ||
| 108 | $this->assertGraphQL($query, $expectedData); |
|
| 109 | } |
|
| 110 | ||
| 111 | public function testWorksWithBackwardConnectionArgs() |
|
| 112 | { |
|
| @@ 111-147 (lines=37) @@ | ||
| 108 | $this->assertGraphQL($query, $expectedData); |
|
| 109 | } |
|
| 110 | ||
| 111 | public function testWorksWithBackwardConnectionArgs() |
|
| 112 | { |
|
| 113 | $query = <<<EOF |
|
| 114 | query FriendsQuery { |
|
| 115 | user { |
|
| 116 | friendsBackward(last: 2) { |
|
| 117 | edges { |
|
| 118 | node { |
|
| 119 | name |
|
| 120 | } |
|
| 121 | } |
|
| 122 | } |
|
| 123 | } |
|
| 124 | } |
|
| 125 | EOF; |
|
| 126 | ||
| 127 | $expectedData = [ |
|
| 128 | 'user' => [ |
|
| 129 | 'friendsBackward' => [ |
|
| 130 | 'edges' => [ |
|
| 131 | [ |
|
| 132 | 'node' => [ |
|
| 133 | 'name' => 'Joe', |
|
| 134 | ], |
|
| 135 | ], |
|
| 136 | [ |
|
| 137 | 'node' => [ |
|
| 138 | 'name' => 'Tim', |
|
| 139 | ], |
|
| 140 | ], |
|
| 141 | ], |
|
| 142 | ], |
|
| 143 | ], |
|
| 144 | ]; |
|
| 145 | ||
| 146 | $this->assertGraphQL($query, $expectedData); |
|
| 147 | } |
|
| 148 | } |
|
| 149 | ||