mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
28 lines
637 B
PHP
28 lines
637 B
PHP
<?php
|
|
use App\Models\Company;
|
|
use Illuminate\Support\Facades\Hash;
|
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
|
|
|
class CompanyTest extends \Codeception\TestCase\Test
|
|
{
|
|
/**
|
|
* @var \UnitTester
|
|
*/
|
|
protected $tester;
|
|
use DatabaseMigrations;
|
|
|
|
public function testAssetAdd()
|
|
{
|
|
$company = factory(Company::class, 'company')->make();
|
|
$values = [
|
|
'name' => $company->name,
|
|
];
|
|
|
|
Company::create($values);
|
|
$this->tester->seeRecord('companies', $values);
|
|
}
|
|
|
|
}
|