MediaWiki  master
MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest Class Reference

AuthManager Database \MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider. More...

Inheritance diagram for MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest:
Collaboration diagram for MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest:

Public Member Functions

 testAccountCreation ()
 
 testAuthentication ()
 
 testBasics ()
 
 testProviderAllowsAuthenticationDataChange ( $type, $user, \Status $validity, \StatusValue $expect1, \StatusValue $expect2)
 provideProviderAllowsAuthenticationDataChange More...
 
 testProviderChangeAuthenticationData ( $usernameTransform, $type, $loginOnly, $changed)
 provideProviderChangeAuthenticationData More...
 
 testSetPasswordResetFlag ()
 
 testTestForAccountCreation ()
 
 testTestUserCanAuthenticate ()
 

Static Public Member Functions

static provideProviderAllowsAuthenticationDataChange ()
 
static provideProviderChangeAuthenticationData ()
 

Protected Member Functions

 getProvider ( $loginOnly=false)
 Get an instance of the provider. More...
 

Private Attributes

 $config = null
 
 $manager = null
 
 $validity = null
 

Detailed Description

Member Function Documentation

◆ getProvider()

◆ provideProviderAllowsAuthenticationDataChange()

static MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::provideProviderAllowsAuthenticationDataChange ( )
static

◆ provideProviderChangeAuthenticationData()

static MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData ( )
static

Definition at line 533 of file LocalPasswordPrimaryAuthenticationProviderTest.php.

References class, false, and true.

◆ testAccountCreation()

◆ testAuthentication()

◆ testBasics()

◆ testProviderAllowsAuthenticationDataChange()

MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange (   $type,
  $user,
\Status  $validity,
\StatusValue  $expect1,
\StatusValue  $expect2 
)

provideProviderAllowsAuthenticationDataChange

Parameters
string$type
string$user
\\Status$validityResult of the password validity check
\\StatusValue$expect1Expected result with $checkData = false
\\StatusValue$expect2Expected result with $checkData = true

Definition at line 357 of file LocalPasswordPrimaryAuthenticationProviderTest.php.

References $req, $type, $user, MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest\$validity, MediaWiki\Auth\AuthManager\ACTION_CHANGE, class, MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest\getProvider(), StatusValue\getValue(), StatusValue\newFatal(), and StatusValue\newGood().

◆ testProviderChangeAuthenticationData()

MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData (   $usernameTransform,
  $type,
  $loginOnly,
  $changed 
)

◆ testSetPasswordResetFlag()

MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag ( )

◆ testTestForAccountCreation()

◆ testTestUserCanAuthenticate()

MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testTestUserCanAuthenticate ( )

Member Data Documentation

◆ $config

MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::$config = null
private

◆ $manager

MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::$manager = null
private

◆ $validity


The documentation for this class was generated from the following file: