| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function testStoresSchemas(): void |
||
| 18 | { |
||
| 19 | $components = new Components([]); |
||
| 20 | $components->schemas = [new Schema([])]; |
||
| 21 | $openApi = new OpenApi([]); |
||
| 22 | $openApi->components = $components; |
||
| 23 | |||
| 24 | BypassFinals::enable(); |
||
| 25 | |||
| 26 | $oaReaderMock = $this->createMock(OAReader::class); |
||
| 27 | $oaReaderMock->expects($this->once())->method('read')->willReturn($openApi); |
||
| 28 | |||
| 29 | $schemas = (new SchemaStorage($oaReaderMock))->getSchemas(); |
||
| 30 | |||
| 31 | $this->assertInstanceOf(Schema::class, $schemas->first()); |
||
| 32 | } |
||
| 34 |