snipe-it/tests/unit/SupplierTest.php

27 lines
589 B
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
<?php
use App\Models\Supplier;
use Illuminate\Support\Facades\Hash;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class SupplierTest extends BaseTest
2016-03-25 01:18:05 -07:00
{
/**
* @var \UnitTester
*/
protected $tester;
2016-03-25 01:18:05 -07:00
public function testSupplierAdd()
{
$supplier = factory(Supplier::class)->make();
2016-03-25 01:18:05 -07:00
$values = [
'name' => $supplier->name,
];
Supplier::create($values);
$this->tester->seeRecord('suppliers', $values);
}
}