Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8799668
foo.diff
Jdlrobson (Jon Robson)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
Jdlrobson
Jul 19 2017, 11:42 PM
2017-07-19 23:42:59 (UTC+0)
Size
924 B
Referenced Files
None
Subscribers
None
foo.diff
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4787604
Default Alt Text
foo.diff (924 B)
Attached To
Mode
T170880: Parser tests fail if default Skin for unit tests makes use of doEditSectionLink
Attached
Detach File
Event Timeline
Log In to Comment