public function testGetWorkflowStepName() { $entity = new Task(); $this->assertNull($entity->getWorkflowStepName()); $workflowStep = $this->getMock('Oro\\Bundle\\WorkflowBundle\\Entity\\WorkflowStep'); $expected = 'sample status'; $workflowStep->expects($this->once())->method('getName')->will($this->returnValue($expected)); $entity->setWorkflowStep($workflowStep); $this->assertEquals($entity->getWorkflowStepName(), $expected); }