PMCORE-493 Unit test solve issues Circle CI WorkflowTest

This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-01-16 15:31:15 -04:00
parent a1b92c852e
commit c015de4c70
2 changed files with 18 additions and 0 deletions

View File

@@ -16,10 +16,14 @@ class BpmnWorkflowTest extends TestCase
{
private $user;
/**
* Set up testing.
*/
public function setUp()
{
parent::setUp();
$this->user = factory(User::class)->create();
Process::truncate();
}
/**
@@ -158,6 +162,10 @@ class BpmnWorkflowTest extends TestCase
'PRJ_NAME' => $projectData['prj_name']
]);
factory(\ProcessMaker\Model\Process::class)->create([
'PRO_TITLE' => $projectData['prj_name']
]);
$this->expectException(Exception::class);
$bpmnWorkflow->createFromStruct($projectData, true, null);
}