X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fuser%2FCentralIdLookupTest.php;h=789cf08fbfdc87540e69d090b1729412b9dfd420;hb=fc587099fac5d45f8a1189bc34b5732e1ae86b2f;hp=1786261c3587ace5dd5c722a507e307aa9d93993;hpb=9ba3fca2d8adc56787c8efc32c41424cb212e387;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/user/CentralIdLookupTest.php b/tests/phpunit/includes/user/CentralIdLookupTest.php index 1786261c35..789cf08fbf 100644 --- a/tests/phpunit/includes/user/CentralIdLookupTest.php +++ b/tests/phpunit/includes/user/CentralIdLookupTest.php @@ -1,5 +1,7 @@ getMockForAbstractClass( 'CentralIdLookup' ) ); - $user = User::newFromName( 'UTSysop' ); + $user = static::getTestSysop()->getUser(); $this->assertSame( $user, $mock->checkAudience( $user ) ); $user = $mock->checkAudience( CentralIdLookup::AUDIENCE_PUBLIC );