Esempio n. 1
0
 public function test_get_theme_path()
 {
     $this->repository = $this->createRepository();
     $result = $this->repository->getThemePath('theme1');
     $expected = $this->app['config']->get('themes.path') . DIRECTORY_SEPARATOR . 'theme1';
     $this->assertEquals($expected, $result);
 }
Esempio n. 2
0
 /**
  * Get theme path by given theme name.
  *
  * @param $theme
  * @return null|string
  * @static
  */
 public static function getThemePath($theme)
 {
     return \Pingpong\Themes\Repository::getThemePath($theme);
 }