コード例 #1
0
 public function tearDown()
 {
     parent::tearDown();
     $_SERVER['error'] = array();
     $_SERVER['info'] = array();
     $_SERVER['call'] = array();
 }
コード例 #2
0
ファイル: CaptchaTest.php プロジェクト: LaraGit/larapress
 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
ファイル: NarratorTest.php プロジェクト: LaraGit/larapress
 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
ファイル: HelpersTest.php プロジェクト: LaraGit/larapress
 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
ファイル: PermissionTest.php プロジェクト: LaraGit/larapress
 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
ファイル: FilterTest.php プロジェクト: acmadi/larapress
 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');
 }