MediaWiki  master
MediaWiki\Session\CookieSessionProviderTest Class Reference

Session Database MediaWiki\Session\CookieSessionProvider. More...

Inheritance diagram for MediaWiki\Session\CookieSessionProviderTest:
Collaboration diagram for MediaWiki\Session\CookieSessionProviderTest:

Public Member Functions

 onUserSetCookies ( $user, &$sessionData, &$cookies)
 To be mocked for hooks, since PHPUnit can't otherwise mock methods that take references. More...
 
 testBasics ()
 
 testConstructor ()
 
 testCookieData ( $secure, $remember)
 provideCookieData More...
 
 testGetCookie ()
 
 testGetLoginCookieExpiration ()
 
 testGetRememberUserDuration ()
 
 testGetVaryCookies ()
 
 testPersistSession ()
 
 testPersistSessionWithHook ()
 
 testProvideSessionInfo ()
 
 testSetLoggedOutCookie ()
 
 testSuggestLoginUsername ()
 
 testUnpersistSession ()
 

Static Public Member Functions

static provideCookieData ()
 

Protected Member Functions

 getSentRequest ()
 

Private Member Functions

 getConfig ()
 

Detailed Description

Member Function Documentation

◆ getConfig()

◆ getSentRequest()

MediaWiki\Session\CookieSessionProviderTest::getSentRequest ( )
protected

◆ onUserSetCookies()

MediaWiki\Session\CookieSessionProviderTest::onUserSetCookies (   $user,
$sessionData,
$cookies 
)

To be mocked for hooks, since PHPUnit can't otherwise mock methods that take references.

Definition at line 775 of file CookieSessionProviderTest.php.

◆ provideCookieData()

static MediaWiki\Session\CookieSessionProviderTest::provideCookieData ( )
static

Definition at line 556 of file CookieSessionProviderTest.php.

References false, and true.

◆ testBasics()

MediaWiki\Session\CookieSessionProviderTest::testBasics ( )

Definition at line 145 of file CookieSessionProviderTest.php.

References class.

◆ testConstructor()

◆ testCookieData()

MediaWiki\Session\CookieSessionProviderTest::testCookieData (   $secure,
  $remember 
)

◆ testGetCookie()

MediaWiki\Session\CookieSessionProviderTest::testGetCookie ( )

◆ testGetLoginCookieExpiration()

MediaWiki\Session\CookieSessionProviderTest::testGetLoginCookieExpiration ( )

◆ testGetRememberUserDuration()

MediaWiki\Session\CookieSessionProviderTest::testGetRememberUserDuration ( )

◆ testGetVaryCookies()

MediaWiki\Session\CookieSessionProviderTest::testGetVaryCookies ( )

Definition at line 357 of file CookieSessionProviderTest.php.

◆ testPersistSession()

◆ testPersistSessionWithHook()

◆ testProvideSessionInfo()

MediaWiki\Session\CookieSessionProviderTest::testProvideSessionInfo ( )

◆ testSetLoggedOutCookie()

MediaWiki\Session\CookieSessionProviderTest::testSetLoggedOutCookie ( )

◆ testSuggestLoginUsername()

MediaWiki\Session\CookieSessionProviderTest::testSuggestLoginUsername ( )

Definition at line 371 of file CookieSessionProviderTest.php.

References $request, and null.

◆ testUnpersistSession()


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