mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 01:24:06 -08:00
1e46fde5e2
Signed-off-by: snipe <snipe@snipe.net>
53 lines
1.4 KiB
PHP
53 lines
1.4 KiB
PHP
<?php
|
|
namespace Tests\Unit;
|
|
|
|
use App\Models\Statuslabel;
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
|
use Tests\Unit\BaseTest;
|
|
|
|
class StatuslabelTest extends BaseTest
|
|
{
|
|
/**
|
|
* @var \UnitTester
|
|
*/
|
|
protected $tester;
|
|
|
|
public function testRTDStatuslabelAdd()
|
|
{
|
|
$statuslabel = Statuslabel::factory()->rtd()->create();
|
|
$this->assertModelExists($statuslabel);
|
|
}
|
|
|
|
public function testPendingStatuslabelAdd()
|
|
{
|
|
$statuslabel = Statuslabel::factory()->pending()->create();
|
|
$this->assertModelExists($statuslabel);
|
|
}
|
|
|
|
public function testArchivedStatuslabelAdd()
|
|
{
|
|
$statuslabel = Statuslabel::factory()->archived()->create();
|
|
$this->assertModelExists($statuslabel);
|
|
}
|
|
|
|
public function testOutForRepairStatuslabelAdd()
|
|
{
|
|
$statuslabel = Statuslabel::factory()->outForRepair()->create();
|
|
$this->assertModelExists($statuslabel);
|
|
}
|
|
|
|
public function testBrokenStatuslabelAdd()
|
|
{
|
|
$statuslabel = Statuslabel::factory()->broken()->create();
|
|
$this->assertModelExists($statuslabel);
|
|
}
|
|
|
|
public function testLostStatuslabelAdd()
|
|
{
|
|
$statuslabel = Statuslabel::factory()->lost()->create();
|
|
$this->assertModelExists($statuslabel);
|
|
}
|
|
}
|