public function testNewForDeleteChange()
 {
     $expected = ['title' => 'Abc', 'user' => 'TestRecentChangesUser', 'timestamp' => '21:21', 'numberofWatchingusers' => 0, 'unpatrolled' => false];
     $user = $this->getMutableTestUser()->getUser();
     $recentChange = $this->testRecentChangesHelper->makeLogRecentChange('delete', 'delete', $user, 'Abc', '20131103212153', 0, 0);
     $cacheEntryFactory = new RCCacheEntryFactory($this->getContext(), $this->getMessages(), $this->linkRenderer);
     $cacheEntry = $cacheEntryFactory->newFromRecentChange($recentChange, false);
     $this->assertInstanceOf('RCCacheEntry', $cacheEntry);
     $this->assertEquals(false, $cacheEntry->watched, 'watched');
     $this->assertEquals('21:21', $cacheEntry->timestamp, 'timestamp');
     $this->assertEquals(0, $cacheEntry->numberofWatchingusers, 'watching users');
     $this->assertEquals(false, $cacheEntry->unpatrolled, 'unpatrolled');
     $this->assertDeleteLogLink($cacheEntry);
     $this->assertUserLinks($user->getName(), $cacheEntry);
     $this->assertEquals('cur', $cacheEntry->curlink, 'cur link for delete log or rev');
     $this->assertEquals('diff', $cacheEntry->difflink, 'diff link for delete log or rev');
     $this->assertEquals('prev', $cacheEntry->lastlink, 'pref link for delete log or rev');
 }
 private function getLogChange($logType, $logAction)
 {
     $user = $this->getTestUser();
     $recentChange = $this->testRecentChangesHelper->makeLogRecentChange($logType, $logAction, $user, 'Abc', '20131103212153', 0, 0);
     return $recentChange;
 }
 public function deleteChangeProvider()
 {
     return array(array(array('title' => 'Abc', 'user' => 'TestRecentChangesUser', 'timestamp' => '21:21', 'numberofWatchingusers' => 0, 'unpatrolled' => false), $this->getContext(), $this->getMessages(), $this->testRecentChangesHelper->makeLogRecentChange('delete', 'delete', $this->getTestUser(), 'Abc', '20131103212153', 0, 0), false));
 }