Blame view

tests/TestCase.php 530 Bytes
b7c7a5f6   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <?php
  
  namespace Tests;
  
  use Illuminate\Foundation\Testing\DatabaseMigrations;
  use Illuminate\Foundation\Testing\DatabaseTransactions;
  use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
  use Illuminate\Support\Facades\Artisan;
  
  abstract class TestCase extends BaseTestCase
  {
      use CreatesApplication, DatabaseMigrations;
  
  	protected function setUp()
  	{
  		parent::setUp();
  		Artisan::call('db:seed', ['--class' => '\Database\Seeds\TestCompany', '--force' => true]);
  		Artisan::call('company:seed',['company' => 1]);
  	}
  }