mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
28 lines
685 B
PHP
28 lines
685 B
PHP
<?php
|
|
use App\Models\Manufacturer;
|
|
use Illuminate\Support\Facades\Hash;
|
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
|
|
|
class ManufacturerTest extends \Codeception\TestCase\Test
|
|
{
|
|
/**
|
|
* @var \UnitTester
|
|
*/
|
|
protected $tester;
|
|
use DatabaseMigrations;
|
|
|
|
public function testManufacturerAdd()
|
|
{
|
|
$manufacturers = factory(Manufacturer::class, 'manufacturer')->make();
|
|
$values = [
|
|
'name' => $manufacturers->name,
|
|
];
|
|
|
|
Manufacturer::create($values);
|
|
$this->tester->seeRecord('manufacturers', $values);
|
|
}
|
|
|
|
}
|