Drop setId call

A user with an ID is a registered user and this test requires
an anonymous user.

Follow up to a1afa7ccb3

Not sure why this was working before, but I'm guessing
setId doesn't modify the User associated with the skin

Change-Id: I32bd74bd5aec1b14fb8b725fca2f8cef5f9d2ba1
This commit is contained in:
Jon Robson 2022-03-21 16:47:42 -07:00
parent eb0e05dff1
commit 4b50b4bbd3
1 changed files with 0 additions and 2 deletions

View File

@ -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' ],