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;
|
|
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
2021-06-10 13:15:52 -07:00
|
|
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
2021-11-30 20:09:29 -08:00
|
|
|
use Tests\Unit\BaseTest;
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2017-07-11 20:37:02 -07:00
|
|
|
class StatuslabelTest extends BaseTest
|
2016-03-25 01:18:05 -07:00
|
|
|
{
|
|
|
|
/**
|
2021-06-10 13:15:52 -07:00
|
|
|
* @var \UnitTester
|
|
|
|
*/
|
2016-03-25 01:18:05 -07:00
|
|
|
protected $tester;
|
2017-06-12 17:39:03 -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
|
|
|
}
|