mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
28 lines
692 B
PHP
28 lines
692 B
PHP
|
<?php
|
||
|
use App\Models\Depreciation;
|
||
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||
|
|
||
|
class DepreciationTest extends \Codeception\TestCase\Test
|
||
|
{
|
||
|
/**
|
||
|
* @var \UnitTester
|
||
|
*/
|
||
|
protected $tester;
|
||
|
use DatabaseMigrations;
|
||
|
|
||
|
public function testDepreciationAdd()
|
||
|
{
|
||
|
$depreciations = factory(Depreciation::class, 'depreciation')->make();
|
||
|
$values = [
|
||
|
'name' => $depreciations->name,
|
||
|
'months' => $depreciations->months,
|
||
|
];
|
||
|
|
||
|
Depreciation::create($values);
|
||
|
$this->tester->seeRecord('depreciations', $values);
|
||
|
}
|
||
|
|
||
|
}
|