Files
luos/tests/unit/workflow/engine/src/ProcessMaker/Model/AppAssignSelfServiceValueGroupTest.php

34 lines
977 B
PHP
Raw Normal View History

2021-12-14 17:37:04 -04:00
<?php
namespace Tests\unit\workflow\engine\src\ProcessMaker\Model;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use ProcessMaker\Model\AppAssignSelfServiceValue;
use ProcessMaker\Model\AppAssignSelfServiceValueGroup;
use Tests\TestCase;
/**
* Class AppAssignSelfServiceValueGroupTest
*
* @coversDefaultClass \ProcessMaker\Model\AppAssignSelfServiceValueGroup
*/
class AppAssignSelfServiceValueGroupTest extends TestCase
{
use DatabaseTransactions;
/**
* Test belongs to ID
*
* @covers \ProcessMaker\Model\AppAssignSelfServiceValueGroup::appSelfService()
* @test
*/
public function it_has_a_id_defined()
{
$table = factory(AppAssignSelfServiceValueGroup::class)->create([
'ID' => function () {
return factory(AppAssignSelfServiceValue::class)->create()->ID;
}
]);
$this->assertInstanceOf(AppAssignSelfServiceValue::class, $table->appSelfService);
}
}