Пример #1
0
 public function tearDown()
 {
     parent::tearDown();
     $_SERVER['error'] = array();
     $_SERVER['info'] = array();
     $_SERVER['call'] = array();
 }
Пример #2
0
 public function setUp()
 {
     parent::setUp();
     $this->view = Mockery::mock('Illuminate\\View\\Factory');
     $this->config = Mockery::mock('Illuminate\\Config\\Repository');
     $this->session = Mockery::mock('Illuminate\\Session\\Store');
     $this->helpers = Mockery::mock('Larapress\\Services\\Helpers');
     $this->mockably = Mockery::mock('Larapress\\Services\\Mockably');
 }
Пример #3
0
 public function setUp()
 {
     parent::setUp();
     $this->config = Mockery::mock('\\Illuminate\\Config\\Repository');
     $this->mail = Mockery::mock('\\Illuminate\\Mail\\Mailer');
     $this->lang = Mockery::mock('\\Illuminate\\Translation\\Translator');
     $this->input = Mockery::mock('\\Illuminate\\Http\\Request');
     $this->sentry = Mockery::mock('\\Cartalyst\\Sentry\\Sentry');
     $this->nullObject = Mockery::mock('\\Larapress\\Services\\NullObject');
     $this->mockably = Mockery::mock('\\Larapress\\Services\\Mockably');
     $this->nullObject->shouldDeferMissing();
 }
Пример #4
0
 public function setUp()
 {
     parent::setUp();
     $this->config = Mockery::mock('\\Illuminate\\Config\\Repository');
     $this->lang = Mockery::mock('\\Illuminate\\Translation\\Translator');
     $this->view = Mockery::mock('\\Illuminate\\View\\Factory');
     $this->mockably = Mockery::mock('\\Larapress\\Services\\Mockably');
     $this->log = Mockery::mock('\\Monolog\\Logger');
     $this->request = Mockery::mock('\\Illuminate\\Http\\Request');
     $this->session = Mockery::mock('\\Illuminate\\Session\\Store');
     $this->db = Mockery::mock('\\Illuminate\\Database\\Connection');
     $this->redirect = Mockery::mock('\\Illuminate\\Routing\\Redirector');
     $this->response = Mockery::mock('\\Illuminate\\Support\\Facades\\Response');
     $this->app = Mockery::mock('\\Illuminate\\Foundation\\Application');
     $this->carbon = Mockery::mock('\\Carbon\\Carbon');
 }
Пример #5
0
 public function setUp()
 {
     parent::setUp();
     $this->sentry = Mockery::mock('Cartalyst\\Sentry\\Sentry');
 }
Пример #6
0
 public function setUp()
 {
     parent::setUp();
     Artisan::call('larapress:install');
 }
Пример #7
0
 public function setUp()
 {
     parent::setUp();
     Route::enableFilters();
     $this->backend_route = Config::get('larapress.urls.backend');
 }
Пример #8
0
 public function setUp()
 {
     parent::setUp();
     $this->config = Mockery::mock('\\Illuminate\\Config\\Repository');
     $this->helpers = Mockery::mock('\\Larapress\\Services\\Helpers');
 }
Пример #9
0
 public function setUp()
 {
     parent::setUp();
     $this->helpers = Mockery::mock('\\Larapress\\Interfaces\\HelpersInterface');
 }