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'); }
public function setUp() { parent::setUp(); $this->request = m::mock('\\Illuminate\\Http\\Request'); self::$files->shouldReceive('exists')->andReturn(false); $this->themes = new Themes(); }
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); }
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(); }