This commit is contained in:
snipe 2016-04-13 01:51:28 -07:00
parent 468fb14274
commit 20876a4502
2 changed files with 4 additions and 3 deletions

View file

@ -10,8 +10,9 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
//protected $baseUrl = 'http://snipe-it5.dev:8888';
function __construct()
{
parent::setUp();
parent::createApplication();
parent::setUp();
}
/**
@ -21,7 +22,7 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
*/
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';
$app = require_once __DIR__.'/../bootstrap/app.php';
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
return $app;
}

View file

@ -15,7 +15,7 @@ class AccessoryTest extends \Codeception\TestCase\Test
public function testAccessoryAdd()
{
$accessory = factory(Accessory::class, 'accessory')->make();
$accessory = factory(\App\Models\Accessory::class, 'accessory')->make();
$values = [
'name' => $accessory->name,
'category_id' => $accessory->category_id,