mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-30 07:59:50 -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);
|
|
}
|
|
}
|