public function testExecute() { $workflowItem = new WorkflowItem(); $this->assertFalse($workflowItem->isClosed()); $action = new CloseWorkflow(); $action->execute($workflowItem); $this->assertTrue($workflowItem->isClosed()); }
public function testClosed() { $this->assertFalse($this->workflowItem->isClosed()); $this->workflowItem->setClosed(true); $this->assertTrue($this->workflowItem->isClosed()); }