PMCORE-3599
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user