TestCase::prepareForTests PHP Method

prepareForTests() private method

private prepareForTests ( )
    private function prepareForTests()
    {
        Artisan::call('migrate');
        if (!User::all()->count()) {
            Artisan::call('db:seed');
        }
        if (!file_exists($this->coverPath)) {
            mkdir($this->coverPath, 0777, true);
        }
    }

Usage Example

コード例 #1
0
ファイル: ApiTest.php プロジェクト: smarcet/openstackid
 protected function prepareForTests()
 {
     parent::prepareForTests();
     //Route::enableFilters();
     $this->current_realm = Config::get('app.url');
     $parts = parse_url($this->current_realm);
     $this->current_host = $parts['host'];
 }
All Usage Examples Of TestCase::prepareForTests