And rework LogFormatterTest so it doesn't need to access that property.
Change-Id: I4d429430efe74dc083019a1a8bb07257785484b9
*/
private $linkRenderer;
+ /**
+ * @see LogFormatter::getMessageParameters
+ * @var array
+ */
+ protected $parsedParameters;
+
protected function __construct( LogEntry $entry ) {
$this->entry = $entry;
$this->context = RequestContext::getMain();
$formatter->setShowUserToolLinks( false );
$paramsWithoutTools = $formatter->getMessageParametersForTesting();
- unset( $formatter->parsedParameters );
- $formatter->setShowUserToolLinks( true );
- $paramsWithTools = $formatter->getMessageParametersForTesting();
+ $formatter2 = LogFormatter::newFromEntry( $entry );
+ $formatter2->setContext( $this->context );
+ $formatter2->setShowUserToolLinks( true );
+ $paramsWithTools = $formatter2->getMessageParametersForTesting();
$userLink = Linker::userLink(
$this->user->getId(),