public function testGetAddTransitionRecords() { $this->assertEmpty($this->workflowItem->getTransitionRecords()->getValues()); $transitionRecord = new WorkflowTransitionRecord(); $transitionRecord->setTransitionName('test_transition'); $this->assertEquals($this->workflowItem, $this->workflowItem->addTransitionRecord($transitionRecord)); $this->assertEquals(array($transitionRecord), $this->workflowItem->getTransitionRecords()->getValues()); $this->assertEquals($this->workflowItem, $transitionRecord->getWorkflowItem()); }