/** @test */ public function it_should_return_empty_array_if_no_folder() { $repository = new ThemeManager($this->app, $this->getFakePath()); $this->assertEquals([], $repository->all()); }
/** * Get the base path of the current theme. * * @return string */ private function getCurrentThemeBasePath() { return $this->themeManager->find(setting('core::template'))->getPath(); }
public function compose(View $view) { $view->with('themes', $this->themeManager->allPublicThemes()); }