From 927b4946130d6452c967097b7ef6ae47d0c93d6e Mon Sep 17 00:00:00 2001 From: addshore Date: Tue, 31 Jul 2018 11:11:50 +0100 Subject: [PATCH] SpecialPageExecutor, make sure Skin context is correctly set Bug: T200771 Change-Id: I6d642449a0962f0a6bc242d2121ad3f270d9df77 --- tests/phpunit/includes/specials/SpecialPageExecutor.php | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.20.1