public function testGetLatestLogEntryFor()
 {
     $this->setupGetEntities();
     $q10 = new ItemId('Q10');
     $q11 = new ItemId('Q11');
     $q12 = new ItemId('Q12');
     // first entry
     $redirect = new EntityRedirect($q10, $q11);
     $revId = $this->repo->saveRedirect($redirect, 'foo', $GLOBALS['wgUser'], EDIT_NEW);
     $logEntry = $this->repo->getLatestLogEntryFor($q10);
     $this->assertNotNull($logEntry);
     $this->assertEquals($revId, $logEntry['revision']);
     $this->assertEquals('Q10', $logEntry['entity']);
     $this->assertEquals('foo', $logEntry['summary']);
     // second entry
     $redirect = new EntityRedirect($q10, $q12);
     $revId = $this->repo->saveRedirect($redirect, 'bar', $GLOBALS['wgUser'], EDIT_NEW);
     $logEntry = $this->repo->getLatestLogEntryFor($q10);
     $this->assertNotNull($logEntry);
     $this->assertEquals($revId, $logEntry['revision']);
     $this->assertEquals('Q10', $logEntry['entity']);
     $this->assertEquals('bar', $logEntry['summary']);
 }