Page MenuHomePhabricator
Authored By
Jdlrobson
Jul 19 2017, 11:42 PM
Size
924 B
Referenced Files
None
Subscribers
None

foo.diff

diff --git a/tests/parser/ParserTestRunner.php b/tests/parser/ParserTestRunner.php
index 9255733..f3193c0 100644
--- a/tests/parser/ParserTestRunner.php
+++ b/tests/parser/ParserTestRunner.php
@@ -797,6 +797,8 @@ class ParserTestRunner {
$teardownGuard = $this->perTestSetup( $test );
$context = RequestContext::getMain();
+ // Make no assumptions about the skin (T170880)
+ $context->setSkin( new SkinFallback() );
$user = $context->getUser();
$options = ParserOptions::newFromContext( $context );
$options->setTimestamp( $this->getFakeTimestamp() );
@@ -1103,6 +1105,8 @@ class ParserTestRunner {
// And put both user and language into the context
$context = RequestContext::getMain();
+ // Make no assumptions about the skin (T170880)
+ $context->setSkin( new SkinFallback() );
$context->setUser( $user );
$context->setLanguage( $lang );
$teardown[] = function () use ( $context ) {

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4787604
Default Alt Text
foo.diff (924 B)

Event Timeline