mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 14:09:43 -08:00
28 lines
677 B
PHP
28 lines
677 B
PHP
<?php
|
|
use App\Models\Location;
|
|
use Illuminate\Support\Facades\Hash;
|
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
|
|
|
class DepartmentTest extends \Codeception\TestCase\Test
|
|
{
|
|
/**
|
|
* @var \UnitTester
|
|
*/
|
|
protected $tester;
|
|
use DatabaseMigrations;
|
|
|
|
public function testDepartmentAdd()
|
|
{
|
|
$department = factory(Department::class, 'department')->make();
|
|
$values = [
|
|
'name' => $department->name,
|
|
];
|
|
|
|
Department::create($values);
|
|
$this->tester->seeRecord('departments', $values);
|
|
}
|
|
|
|
}
|