public function testUpdatedAndPreUpdate() { $this->assertNull($this->workflowItem->getUpdated()); $this->workflowItem->preUpdate(); $this->assertInstanceOf('DateTime', $this->workflowItem->getUpdated()); $this->assertEquals(time(), $this->workflowItem->getUpdated()->getTimestamp(), '', 5); }