* @covers MediaWiki\Auth\AbstractPrimaryAuthenticationProvider
*/
class AbstractPrimaryAuthenticationProviderTest extends \MediaWikiTestCase {
- protected function setUp() {
- global $wgDisableAuthManager;
-
- parent::setUp();
- if ( $wgDisableAuthManager ) {
- $this->markTestSkipped( '$wgDisableAuthManager is set' );
- }
- }
-
public function testAbstractPrimaryAuthenticationProvider() {
$user = \User::newFromName( 'UTSysop' );
public function testProviderRevokeAccessForUser() {
$reqs = [];
for ( $i = 0; $i < 3; $i++ ) {
- $reqs[$i] = $this->getMock( AuthenticationRequest::class );
+ $reqs[$i] = $this->createMock( AuthenticationRequest::class );
$reqs[$i]->done = false;
}