| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function testHasType() |
||
| 42 | { |
||
| 43 | $type = new ObjectType([ |
||
| 44 | 'name' => 'Foo', |
||
| 45 | 'fields' => function() {return [];} |
||
| 46 | ]); |
||
| 47 | |||
| 48 | $registry = new TypeRegistry(); |
||
| 49 | $registry->registerType($type); |
||
| 50 | |||
| 51 | $this->assertTrue($registry->hasType('Foo')); |
||
| 52 | $this->assertFalse($registry->hasType('Bar')); |
||
| 53 | |||
| 56 |