| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function test_getItemsDirectory() |
||
| 16 | { |
||
| 17 | $manager = \Mockery::mock(Records::class)->makePartial(); |
||
| 18 | $manager->shouldReceive('getTypesDirectory')->once()->andReturn('test'); |
||
| 19 | |||
| 20 | $definition = new Definition(); |
||
| 21 | $definition->setName('Type'); |
||
| 22 | $definition->setManager($manager); |
||
| 23 | |||
| 24 | self::assertSame( |
||
| 25 | 'test', |
||
| 26 | $definition->getItemsDirectory() |
||
| 27 | ); |
||
| 30 |