From: addshore Date: Tue, 31 Jul 2018 10:11:50 +0000 (+0100) Subject: SpecialPageExecutor, make sure Skin context is correctly set X-Git-Tag: 1.34.0-rc.0~4616^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=927b4946130d6452c967097b7ef6ae47d0c93d6e;p=lhc%2Fweb%2Fwiklou.git SpecialPageExecutor, make sure Skin context is correctly set Bug: T200771 Change-Id: I6d642449a0962f0a6bc242d2121ad3f270d9df77 --- diff --git a/tests/phpunit/includes/specials/SpecialPageExecutor.php b/tests/phpunit/includes/specials/SpecialPageExecutor.php index e7cfca7f01..9572e30119 100644 --- a/tests/phpunit/includes/specials/SpecialPageExecutor.php +++ b/tests/phpunit/includes/specials/SpecialPageExecutor.php @@ -73,6 +73,9 @@ class SpecialPageExecutor { $this->setEditTokenFromUser( $context ); + // Make sure the skin context is correctly set https://phabricator.wikimedia.org/T200771 + $context->getSkin()->setContext( $context ); + return $context; }