Example #1
0
 public function testGetViewReturnsDefaultViewWhenViewDoesntExist()
 {
     $template = new Template(['theme' => 'test', 'filename' => 'test']);
     View::shouldReceive('exists')->with($template->getFullFilename())->andReturn(false);
     View::shouldReceive('make')->with('boomcms::templates.default');
     $template->getView();
 }