| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function testMapNameToType() |
||
| 21 | { |
||
| 22 | $typeResolver = new TypeResolver(); |
||
| 23 | $schema = new Schema([]); |
||
| 24 | $typeResolver->registerSchema($schema); |
||
| 25 | $this->assertInstanceOf(IDType::class, $typeResolver->mapNameToType('ID')); |
||
| 26 | |||
| 27 | $this->expectException(CannotMapTypeException::class); |
||
| 28 | $typeResolver->mapNameToType('NotExists'); |
||
| 29 | } |
||
| 31 |