(bug 24620) Add tests for LogFormatter
[lhc/web/wiklou.git] / includes / logging / LogFormatter.php
index f049126..1d8adf9 100644 (file)
@@ -430,7 +430,7 @@ class LogFormatter {
         *  - 3: target page with premade link
         * @return array
         */
-       protected function getMessageParameters() {
+       public function getMessageParameters() {
                if ( isset( $this->parsedParameters ) ) {
                        return $this->parsedParameters;
                }
@@ -820,7 +820,7 @@ class MoveLogFormatter extends LogFormatter {
                return $key;
        }
 
-       protected function getMessageParameters() {
+       public function getMessageParameters() {
                $params = parent::getMessageParameters();
                $oldname = $this->makePageLink( $this->entry->getTarget(), array( 'redirect' => 'no' ) );
                $newname = $this->makePageLink( Title::newFromText( $params[3] ) );
@@ -873,7 +873,7 @@ class DeleteLogFormatter extends LogFormatter {
                return $key;
        }
 
-       protected function getMessageParameters() {
+       public function getMessageParameters() {
                if ( isset( $this->parsedParametersDeleteLog ) ) {
                        return $this->parsedParametersDeleteLog;
                }
@@ -1042,7 +1042,7 @@ class PatrolLogFormatter extends LogFormatter {
                return $key;
        }
 
-       protected function getMessageParameters() {
+       public function getMessageParameters() {
                $params = parent::getMessageParameters();
 
                $target = $this->entry->getTarget();
@@ -1071,7 +1071,7 @@ class PatrolLogFormatter extends LogFormatter {
  * @since 1.19
  */
 class NewUsersLogFormatter extends LogFormatter {
-       protected function getMessageParameters() {
+       public function getMessageParameters() {
                $params = parent::getMessageParameters();
                if ( $this->entry->getSubtype() === 'create2' ) {
                        if ( isset( $params[3] ) ) {
@@ -1138,7 +1138,7 @@ class RightsLogFormatter extends LogFormatter {
                return $key;
        }
 
-       protected function getMessageParameters() {
+       public function getMessageParameters() {
                $params = parent::getMessageParameters();
 
                // Really old entries