public function testDoUpdate()
 {
     $item = new NavigationHistoryItem();
     $oldVisitedAt = $item->getVisitedAt();
     $oldVisitCount = $item->getVisitCount();
     $item->doUpdate();
     $this->assertInstanceOf('DateTime', $item->getVisitedAt());
     $this->assertNotEquals($oldVisitedAt, $item->getVisitedAt());
     $this->assertNotEquals($oldVisitCount, $item->getVisitCount());
     $this->assertEquals($oldVisitCount + 1, $item->getVisitCount());
 }
 /**
  * {@inheritDoc}
  */
 public function doUpdate()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'doUpdate', array());
     return parent::doUpdate();
 }