| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function testConfiguratorBootstrapsModulePathsAndIcons(): void |
||
| 11 | { |
||
| 12 | $configurator = new Configurator(); |
||
| 13 | |||
| 14 | self::assertSame('PEDIGREE ModuleConfigurator', $configurator->name); |
||
| 15 | self::assertNotNull($configurator->paths, 'Paths configuration should be initialised.'); |
||
| 16 | self::assertNotNull($configurator->icons, 'Icon configuration should be initialised.'); |
||
| 17 | |||
| 18 | $uploadFolders = $configurator->uploadFolders; |
||
| 19 | self::assertTrue(in_array(XOOPS_UPLOAD_PATH . '/pedigree/pedigree_config', $uploadFolders, true)); |
||
| 20 | |||
| 21 | $paths = (array)$configurator->paths->paths; |
||
| 22 | self::assertSame(XOOPS_ROOT_PATH . '/modules/pedigree', $paths['modPath']); |
||
| 23 | self::assertSame(XOOPS_URL . '/modules/pedigree', $paths['modUrl']); |
||
| 24 | |||
| 25 | $icons = (array)$configurator->icons; |
||
| 26 | self::assertArrayHasKey('edit', $icons); |
||
| 27 | self::assertArrayHasKey('delete', $icons); |
||
| 28 | self::assertArrayHasKey('add', $icons); |
||
| 29 | } |
||
| 31 |