#21 clean up the tests

This commit is contained in:
Nabeel Shahzad
2017-07-04 13:09:44 -05:00
parent 679c72085f
commit 70dbfbcd3f
7 changed files with 16 additions and 12 deletions

View File

@@ -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.'

View File

@@ -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.'

View File

@@ -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

View File

@@ -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');
}