Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class InputTypesTest extends \PHPUnit\Framework\TestCase |
||
11 | { |
||
12 | use TypesTrait; |
||
13 | |||
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 | } |
||
24 | |||
25 | public function testDefaultValuesInput(): void |
||
26 | { |
||
27 | $actual = $this->types->getInput(Blog\Model\Special\DefaultValue::class); |
||
28 | $this->assertType('tests/data/DefaultValueInput.graphqls', $actual); |
||
29 | } |
||
30 | |||
31 | public function testDefaultValuesPartialInput(): void |
||
35 | } |
||
36 | |||
37 | public function testInputWithoutTypeMustThrow(): void |
||
42 | } |
||
43 | } |
||
44 |