From 4b50b4bbd34287443c4526618ded1a6a7d940a80 Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Mon, 21 Mar 2022 16:47:42 -0700 Subject: [PATCH] Drop setId call A user with an ID is a registered user and this test requires an anonymous user. Follow up to a1afa7ccb3eb56fdf85a0450333db72ea8a41999 Not sure why this was working before, but I'm guessing setId doesn't modify the User associated with the skin Change-Id: I32bd74bd5aec1b14fb8b725fca2f8cef5f9d2ba1 --- tests/phpunit/integration/VectorHooksTest.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/phpunit/integration/VectorHooksTest.php b/tests/phpunit/integration/VectorHooksTest.php index dd4a8d72f..3340884c3 100644 --- a/tests/phpunit/integration/VectorHooksTest.php +++ b/tests/phpunit/integration/VectorHooksTest.php @@ -630,8 +630,6 @@ class VectorHooksTest extends MediaWikiIntegrationTestCase { ); $updateUserLinksDropdownItems->setAccessible( true ); $skin = new SkinVector22( [ 'name' => 'vector-2022' ] ); - // Anon user - $skin->getUser()->setId( '1' ); $contentAnon = [ 'user-menu' => [ 'anonuserpage' => [ 'class' => [], 'icon' => 'anonuserpage' ],