PMCORE-3709
This commit is contained in:
@@ -54,6 +54,19 @@ class ProcessVariablesTest extends TestCase
|
||||
$this->assertEquals($process[0]['PRO_UID'], $result[1]['PRJ_UID']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test it return a variable related to the VAR_UID
|
||||
*
|
||||
* @covers \ProcessMaker\Model\ProcessVariables::getVariable()
|
||||
* @test
|
||||
*/
|
||||
public function it_get_variable()
|
||||
{
|
||||
$table = factory(ProcessVariables::class)->create();
|
||||
$result = ProcessVariables::getVariable($table->VAR_UID);
|
||||
$this->assertNotEmpty($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test it return the variables related to the PRO_ID
|
||||
*
|
||||
@@ -76,6 +89,8 @@ class ProcessVariablesTest extends TestCase
|
||||
/**
|
||||
* Test it return the variables by type related to the PRO_ID
|
||||
*
|
||||
* @covers \ProcessMaker\Model\ProcessVariables::scopeProcessId()
|
||||
* @covers \ProcessMaker\Model\ProcessVariables::scopeTypeId()
|
||||
* @covers \ProcessMaker\Model\ProcessVariables::getVariablesByType()
|
||||
* @test
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user