예제 #1
3
 public function setUp()
 {
     parent::setUp();
     $this->request = m::mock('\\Illuminate\\Http\\Request');
     $this->themes = new Themes();
     self::$files->shouldReceive('exists')->andReturn(false);
     $this->lastWeek = Carbon::today()->subWeek()->format('Y-m-d');
     $this->yesterday = Carbon::yesterday()->format('Y-m-d');
     $this->today = Carbon::today()->format('Y-m-d');
     $this->tomorrow = Carbon::tomorrow()->format('Y-m-d');
     $this->nextWeek = Carbon::today()->addWeek()->format('Y-m-d');
 }
예제 #2
0
 public function setUp()
 {
     parent::setUp();
     $this->request = m::mock('\\Illuminate\\Http\\Request');
     self::$files->shouldReceive('exists')->andReturn(false);
     $this->themes = new Themes();
 }
예제 #3
0
 public function setUp()
 {
     parent::setUp();
     self::$url = m::mock('\\Illuminate\\Routing\\UrlGenerator');
     self::$themes = m::mock('\\PeterColes\\Themes\\Themes');
     self::$globals = m::mock();
     self::$files->shouldReceive('exists')->andReturn(false);
 }
예제 #4
0
 public function setUp()
 {
     parent::setUp();
     self::$config->shouldreceive('get')->with('themes')->andReturn([['theme' => 'foo']]);
     self::$finder->shouldReceive('addLocation')->once();
     $this->request = m::mock('\\Illuminate\\Http\\Request');
     $this->themes = new Themes();
 }