#21 clean up the tests
This commit is contained in:
@@ -9,7 +9,7 @@ class AircraftTest extends TestCase
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->addData('aircraft_test');
|
||||
$this->addData('aircraft');
|
||||
}
|
||||
|
||||
protected function getAircraftClass()
|
||||
@@ -44,7 +44,7 @@ class AircraftTest extends TestCase
|
||||
return $this->findByICAO($this->ICAO);
|
||||
}
|
||||
|
||||
public function testAircraftFaresNoOverride()
|
||||
public function XtestAircraftFaresNoOverride()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
@@ -82,7 +82,7 @@ class AircraftTest extends TestCase
|
||||
$this->assertCount(0, $fare_svc->getForAircraft($aircraft));
|
||||
}
|
||||
|
||||
public function testAircraftFaresOverride()
|
||||
public function XtestAircraftFaresOverride()
|
||||
{
|
||||
$this->markTestSkipped(
|
||||
'This test has not been implemented yet.'
|
||||
@@ -125,7 +125,7 @@ class AircraftTest extends TestCase
|
||||
/**
|
||||
* @expectedException Exception
|
||||
*/
|
||||
public function testAircraftMissingField()
|
||||
public function XtestAircraftMissingField()
|
||||
{
|
||||
$this->markTestSkipped(
|
||||
'This test has not been implemented yet.'
|
||||
|
||||
@@ -24,7 +24,7 @@ class FlightTest extends TestCase
|
||||
/**
|
||||
* mainly to test the model relationships work correctly
|
||||
*/
|
||||
public function testAddFlight()
|
||||
public function XtestAddFlight()
|
||||
{
|
||||
$this->markTestSkipped(
|
||||
'This test has not been implemented yet.'
|
||||
|
||||
@@ -4,11 +4,11 @@ use App\Models\Pirep;
|
||||
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class PIREPTest extends TestCase
|
||||
{
|
||||
use WithoutMiddleware;
|
||||
#use DatabaseMigrations;
|
||||
|
||||
protected $pirepSvc;
|
||||
protected $SAMPLE_PIREP
|
||||
|
||||
@@ -17,7 +17,7 @@ abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||
parent::__construct($name, $data, $dataName);
|
||||
}
|
||||
|
||||
protected function reset_db(){
|
||||
protected function reset_db() {
|
||||
exec('make -f ' . __DIR__ . '/../Makefile unittest-db');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user