Index: trunk/phase3/tests/phpunit/includes/parser/NewParserTest.php |
— | — | @@ -164,7 +164,7 @@ |
165 | 165 | # Update certain things in site_stats |
166 | 166 | $this->db->insert( 'site_stats', |
167 | 167 | array( 'ss_row_id' => 1, 'ss_images' => 2, 'ss_good_articles' => 1 ), |
168 | | - __METHOD__ ); |
| 168 | + __METHOD__, array( 'IGNORE' ) ); |
169 | 169 | |
170 | 170 | # Reinitialise the LocalisationCache to match the database state |
171 | 171 | Language::getLocalisationCache()->unloadAll(); |
— | — | @@ -500,8 +500,7 @@ |
501 | 501 | $replace = $opts['replace'][1]; |
502 | 502 | $out = $parser->replaceSection( $input, $section, $replace ); |
503 | 503 | } elseif ( isset( $opts['comment'] ) ) { |
504 | | - $linker = $user->getSkin(); |
505 | | - $out = $linker->formatComment( $input, $title, $local ); |
| 504 | + $out = Linker::formatComment( $input, $title, $local ); |
506 | 505 | } elseif ( isset( $opts['preload'] ) ) { |
507 | 506 | $out = $parser->getpreloadText( $input, $title, $options ); |
508 | 507 | } else { |
Index: trunk/phase3/tests/parser/parserTest.inc |
— | — | @@ -452,8 +452,7 @@ |
453 | 453 | $replace = $opts['replace'][1]; |
454 | 454 | $out = $parser->replaceSection( $input, $section, $replace ); |
455 | 455 | } elseif ( isset( $opts['comment'] ) ) { |
456 | | - $linker = $user->getSkin(); |
457 | | - $out = $linker->formatComment( $input, $title, $local ); |
| 456 | + $out = Linker::formatComment( $input, $title, $local ); |
458 | 457 | } elseif ( isset( $opts['preload'] ) ) { |
459 | 458 | $out = $parser->getpreloadText( $input, $title, $options ); |
460 | 459 | } else { |