Esempio n. 1
0
 /**
  * Register the view finder implementation.
  *
  * @return void
  */
 public function registerViewFinder()
 {
     $this->app->bind('view.finder', function ($app) {
         $finder = new ThemeFinder();
         $theme = $finder->find(config('themer.active_theme'));
         $theme .= '/views';
         $viewFinder = new ThemeViewFinder($app['files'], $app['config']['view.paths']);
         $viewFinder->prepandLocation($theme);
         return $viewFinder;
     });
 }
Esempio n. 2
0
 /**
  * @expectedException Mrdejong\Themer\Exceptions\ThemeNotFoundException
  */
 public function testThemeNotFound()
 {
     Config::shouldReceive('get')->twice()->andReturn(__DIR__ . '/themes');
     $theme = new ThemeFinder();
     $theme->find('hello');
 }