Beispiel #1
0
 public function testFileExists()
 {
     $template = new Template(['theme' => 'test', 'filename' => 'test']);
     View::shouldReceive('exists')->once()->with($template->getFullFilename())->andReturn(false);
     $this->assertFalse($template->fileExists());
     View::shouldReceive('exists')->once()->with($template->getFullFilename())->andReturn(true);
     $this->assertTrue($template->fileExists());
 }