Fix tests for 5.8
This commit is contained in:
@@ -11,7 +11,7 @@ class AcarsTest extends TestCase
|
||||
{
|
||||
protected $settingsRepo;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
$this->addData('base');
|
||||
|
||||
@@ -9,7 +9,7 @@ use App\Services\FareService;
|
||||
*/
|
||||
class ApiTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
$this->addData('base');
|
||||
|
||||
@@ -7,7 +7,7 @@ class AwardsTest extends TestCase
|
||||
private $awardSvc;
|
||||
private $pirepSvc;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
$this->awardSvc = app(\App\Services\AwardService::class);
|
||||
|
||||
@@ -21,7 +21,7 @@ class FinanceTest extends TestCase
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
$this->addData('base');
|
||||
|
||||
@@ -12,7 +12,7 @@ class FlightTest extends TestCase
|
||||
protected $flightSvc;
|
||||
protected $settingsRepo;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
$this->addData('base');
|
||||
|
||||
@@ -12,7 +12,7 @@ class ImporterTest extends TestCase
|
||||
private $importSvc;
|
||||
private $fareSvc;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
$this->importBaseClass = new \App\Interfaces\ImportExport();
|
||||
|
||||
@@ -4,10 +4,6 @@ use App\Support\Math;
|
||||
|
||||
class MathTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test adding/subtracting a percentage
|
||||
*/
|
||||
|
||||
@@ -10,9 +10,9 @@ class MetarTest extends TestCase
|
||||
{
|
||||
private $settingsRepo;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp(); // TODO: Change the autogenerated stub
|
||||
parent::setUp();
|
||||
$this->settingsRepo = app(SettingRepository::class);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,9 +15,9 @@ class PIREPTest extends TestCase
|
||||
protected $pirepSvc;
|
||||
protected $settingsRepo;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp(); // TODO: Change the autogenerated stub
|
||||
parent::setUp();
|
||||
$this->addData('base');
|
||||
|
||||
$this->pirepSvc = app('App\Services\PirepService');
|
||||
|
||||
@@ -6,7 +6,7 @@ class SubfleetTest extends TestCase
|
||||
protected $ac_svc;
|
||||
protected $ICAO = 'B777';
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
$this->addData('base');
|
||||
|
||||
@@ -19,7 +19,7 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||
|
||||
protected $app;
|
||||
protected $baseUrl = 'http://localhost';
|
||||
protected $connectionsToTransact = ['testing'];
|
||||
protected $connectionsToTransact = ['test'];
|
||||
|
||||
protected $user;
|
||||
|
||||
@@ -30,13 +30,18 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public function setUp()
|
||||
public function setUp() : void
|
||||
{
|
||||
parent::setUp();
|
||||
Artisan::call('database:create', ['--reset' => true]);
|
||||
Artisan::call('migrate:refresh', ['--env' => 'unittest']);
|
||||
}
|
||||
|
||||
public function tearDown() : void
|
||||
{
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the application. Required to be implemented
|
||||
*
|
||||
|
||||
@@ -8,7 +8,7 @@ class UserTest extends TestCase
|
||||
protected $settingsRepo;
|
||||
protected $userSvc;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
$this->userSvc = app(UserService::class);
|
||||
|
||||
@@ -4,10 +4,6 @@ use App\Facades\Utils;
|
||||
|
||||
class UtilsTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
}
|
||||
|
||||
public function testDates()
|
||||
{
|
||||
$carbon = new \Carbon\Carbon('2018-04-28T12:55:40Z');
|
||||
|
||||
Reference in New Issue
Block a user