PMCORE-3599

This commit is contained in:
Paula Quispe
2021-12-14 17:37:04 -04:00
parent d4beed9ae9
commit ba1562001b
32 changed files with 796 additions and 12 deletions

View File

@@ -0,0 +1,34 @@
<?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);
}
}