| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function test_generateCache() |
||
| 16 | { |
||
| 17 | $repository = new MappingRepository(); |
||
| 18 | $data = new MappingData(); |
||
| 19 | $data->setTable('test'); |
||
| 20 | $repository->set('test', $data); |
||
| 21 | |||
| 22 | $cache = $repository->generateCache(); |
||
| 23 | self::assertSame( |
||
| 24 | 'a:1:{s:4:"test";C:31:"Nip\Records\Mapping\MappingData":122:{a:6:{s:5:"table";s:4:"test";s:5:"model";N;s:10:"controller";N;s:14:"tableStructure";N;s:6:"fields";N;s:10:"bootTraits";N;}}}', |
||
| 25 | $cache |
||
| 26 | ); |
||
| 29 |