2016-03-25 01:18:05 -07:00
|
|
|
<?php
|
2021-11-30 20:09:29 -08:00
|
|
|
namespace Tests\Unit;
|
2021-06-10 13:15:52 -07:00
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
use App\Models\Statuslabel;
|
2023-03-07 16:57:55 -08:00
|
|
|
use Tests\TestCase;
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2023-03-07 16:57:55 -08:00
|
|
|
class StatuslabelTest extends TestCase
|
2016-03-25 01:18:05 -07:00
|
|
|
{
|
2021-06-10 13:15:52 -07:00
|
|
|
public function testRTDStatuslabelAdd()
|
|
|
|
{
|
2021-12-02 19:01:57 -08:00
|
|
|
$statuslabel = Statuslabel::factory()->rtd()->create();
|
|
|
|
$this->assertModelExists($statuslabel);
|
2021-06-10 13:15:52 -07:00
|
|
|
}
|
2018-07-23 06:48:21 -07:00
|
|
|
|
2021-06-10 13:15:52 -07:00
|
|
|
public function testPendingStatuslabelAdd()
|
|
|
|
{
|
2021-12-02 19:01:57 -08:00
|
|
|
$statuslabel = Statuslabel::factory()->pending()->create();
|
|
|
|
$this->assertModelExists($statuslabel);
|
2021-06-10 13:15:52 -07:00
|
|
|
}
|
2018-07-23 06:48:21 -07:00
|
|
|
|
2021-06-10 13:15:52 -07:00
|
|
|
public function testArchivedStatuslabelAdd()
|
|
|
|
{
|
2021-12-02 19:01:57 -08:00
|
|
|
$statuslabel = Statuslabel::factory()->archived()->create();
|
|
|
|
$this->assertModelExists($statuslabel);
|
2021-06-10 13:15:52 -07:00
|
|
|
}
|
2018-07-23 06:48:21 -07:00
|
|
|
|
2021-06-10 13:15:52 -07:00
|
|
|
public function testOutForRepairStatuslabelAdd()
|
|
|
|
{
|
2021-12-02 19:01:57 -08:00
|
|
|
$statuslabel = Statuslabel::factory()->outForRepair()->create();
|
|
|
|
$this->assertModelExists($statuslabel);
|
2021-06-10 13:15:52 -07:00
|
|
|
}
|
2018-07-23 06:48:21 -07:00
|
|
|
|
2021-06-10 13:15:52 -07:00
|
|
|
public function testBrokenStatuslabelAdd()
|
|
|
|
{
|
2021-12-02 19:01:57 -08:00
|
|
|
$statuslabel = Statuslabel::factory()->broken()->create();
|
|
|
|
$this->assertModelExists($statuslabel);
|
2021-06-10 13:15:52 -07:00
|
|
|
}
|
2018-07-23 06:48:21 -07:00
|
|
|
|
2021-06-10 13:15:52 -07:00
|
|
|
public function testLostStatuslabelAdd()
|
|
|
|
{
|
2021-12-02 19:01:57 -08:00
|
|
|
$statuslabel = Statuslabel::factory()->lost()->create();
|
|
|
|
$this->assertModelExists($statuslabel);
|
2021-06-10 13:15:52 -07:00
|
|
|
}
|
2016-03-25 01:18:05 -07:00
|
|
|
}
|