mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 07:43:47 +00:00
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:
parent
eb0e05dff1
commit
4b50b4bbd3
|
@ -630,8 +630,6 @@ class VectorHooksTest extends MediaWikiIntegrationTestCase {
|
||||||
);
|
);
|
||||||
$updateUserLinksDropdownItems->setAccessible( true );
|
$updateUserLinksDropdownItems->setAccessible( true );
|
||||||
$skin = new SkinVector22( [ 'name' => 'vector-2022' ] );
|
$skin = new SkinVector22( [ 'name' => 'vector-2022' ] );
|
||||||
// Anon user
|
|
||||||
$skin->getUser()->setId( '1' );
|
|
||||||
$contentAnon = [
|
$contentAnon = [
|
||||||
'user-menu' => [
|
'user-menu' => [
|
||||||
'anonuserpage' => [ 'class' => [], 'icon' => 'anonuserpage' ],
|
'anonuserpage' => [ 'class' => [], 'icon' => 'anonuserpage' ],
|
||||||
|
|
Loading…
Reference in a new issue