| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function testCanGetInputTypes(): void |
||
| 15 | { |
||
| 16 | $userType = $this->types->getInput(User::class); |
||
| 17 | $this->assertType('tests/data/UserInput.graphqls', $userType); |
||
| 18 | self::assertSame($userType, $this->types->getInput(User::class), 'must returns the same instance of user type'); |
||
| 19 | |||
| 20 | $postType = $this->types->getInput(Post::class); |
||
| 21 | $this->assertType('tests/data/PostInput.graphqls', $postType); |
||
| 22 | self::assertSame($postType, $this->types->getInput(Post::class), 'must returns the same instance of post type'); |
||
| 23 | } |
||
| 44 |