public function testRecentChangesLine_LogTitle() {
$oldChangesList = $this->getOldChangesList();
- $recentChange = $this->getLogChange( 'delete' );
+ $recentChange = $this->getLogChange( 'delete', 'delete' );
$line = $oldChangesList->recentChangesLine( $recentChange, false, 1 );
return $recentChange;
}
- private function getLogChange( $logType ) {
+ private function getLogChange( $logType, $logAction ) {
$user = $this->getTestUser();
$recentChange = $this->testRecentChangesHelper->makeLogRecentChange(
- $logType, $user, 'Abc', '20131103212153', 0, 0
+ $logType, $logAction, $user, 'Abc', '20131103212153', 0, 0
);
return $recentChange;
return $this->makeRecentChange( $attribs, $counter, $watchingUsers );
}
- public function makeLogRecentChange( $logType, User $user, $titleText, $timestamp, $counter,
+ public function makeLogRecentChange( $logType, $logAction, User $user, $titleText, $timestamp, $counter,
$watchingUsers
) {
$attribs = array_merge(
'rc_type' => 3,
'rc_logid' => 25,
'rc_log_type' => $logType,
- 'rc_log_action' => $logType,
+ 'rc_log_action' => $logAction,
'rc_source' => 'mw.log'
)
);