snipe-it/tests/unit/LocationTest.php

26 lines
593 B
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
<?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 LocationTest extends BaseTest
2016-03-25 01:18:05 -07:00
{
/**
* @var \UnitTester
*/
2016-03-25 01:18:05 -07:00
protected $tester;
public function testAssetAdd()
{
$location = factory(Location::class)->make();
$values = [
2016-03-25 01:18:05 -07:00
'name' => $location->name,
];
2016-03-25 01:18:05 -07:00
Location::create($values);
$this->tester->seeRecord('locations', $values);
2016-03-25 01:18:05 -07:00
}
}