mirror of
https://github.com/snipe/snipe-it.git
synced 2024-09-19 23:37:38 -07:00
Meh
This commit is contained in:
parent
468fb14274
commit
20876a4502
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue