public function findInstalledThemes() { $theme = new Theme(); $themes = $this->filesystem->directories($theme->getThemesDirectory()); if (is_array($themes)) { foreach ($themes as &$t) { $t = new Theme(str_replace($theme->getThemesDirectory() . '/', '', $t)); } } return $themes ?: []; }
public function testGetPublicDirectory() { $theme = new Theme('test'); $this->assertEquals(storage_path() . '/boomcms/themes/test/public', $theme->getPublicDirectory()); }