public function testImport() { $this->step->setName('test'); $this->step->setLabel('test'); $this->step->setStepOrder(1); $this->step->setFinal(true); $newStep = new WorkflowStep(); $this->assertEquals($newStep, $newStep->import($this->step)); $this->assertEquals('test', $newStep->getName()); $this->assertEquals('test', $newStep->getLabel()); $this->assertEquals(1, $newStep->getStepOrder()); $this->assertTrue($newStep->isFinal()); }
public function testToString() { $label = 'Step Label'; $this->step->setLabel($label); $this->assertEquals($label, (string) $this->step); }