$this->assertEquals($this->definition['label'],$this->workflowGroup->getLabel(),'Workflow group label matches the expected one');
}
/**
* @covers ::getEntityTypeId
*/
publicfunctiontestGetEntityTypeId(){
$this->assertEquals($this->definition['entity_type'],$this->workflowGroup->getEntityTypeId(),'Workflow group entity type id matches the expected one');
}
/**
* @covers ::getWorkflowClass
*/
publicfunctiontestGetWorkflowClass(){
$this->assertEquals($this->definition['workflow_class'],$this->workflowGroup->getWorkflowClass(),'Workflow group class matches the expected one');
$this->assertEquals($this->expectedDefinitions,$this->groupManager->getDefinitionsByEntityType('commerce_order'),'Workflow group definition matches the expectations');
}
/**
* Tests that the workflow group manager returns the right object.
$this->assertEquals('Order',$workflow_group->getLabel(),'Workflow group label matches the expected one');
$this->assertEquals('commerce_order',$workflow_group->getEntityTypeId(),'Workflow group entity type id matches the expected one');
$this->assertEquals('\Drupal\state_machine\Plugin\Workflow\Workflow',$workflow_group->getWorkflowClass(),'Workflow group class matches the expected one');
}
}
/**
* Provides a testing version of WorkflowGroupManager with an empty constructor.