snipe-it/tests/Unit/StatuslabelTest.php
snipe 1e46fde5e2 Fixed status labels tests
Signed-off-by: snipe <snipe@snipe.net>
2021-12-02 19:01:57 -08:00

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);
}
}