getWorkflowId() public method

public getWorkflowId ( ) : string
return string the id of the workflow this status belongs to.
 public function testStatusCreationSuccess()
 {
     $this->specify('create a status instance', function () {
         $s = new Status(['id' => 'draft', 'workflowId' => 'workflow1']);
         expect("status id is 'draft'", $s->getId())->equals('draft');
         expect("workflow id is 'workflow1'", $s->getWorkflowId())->equals('workflow1');
         expect("label is empty string", $s->getLabel())->equals('');
     });
     $this->specify('create a status instance with a label', function () {
         $s = new Status(['id' => 'draft', 'workflowId' => 'workflow1', 'label' => 'my custom label']);
         expect("label is 'my custom label'", $s->getLabel())->equals('my custom label');
     });
 }