SessionHandlerTestCase
extends TestCase
in package
Abstract base class for session handler test cases.
Tags
Table of Contents
- $services : PluginManager
- Mock database services.
- $tables : PluginManager
- Mock database tables.
- getServices() : PluginManager
- Get mock database service plugin manager
- getTables() : PluginManager
- Get mock database plugin manager
- injectMockDatabaseDependencies() : void
- Set up mock database services for a session handler.
- injectMockDatabaseTables() : void
- Set up mock databases for a session handler.
- setUpDestroyExpectations() : void
- Set up expectations for the standard abstract handler's destroy behavior.
Properties
$services
Mock database services.
protected
PluginManager
$services
= false
$tables
Mock database tables.
protected
PluginManager
$tables
= false
Methods
getServices()
Get mock database service plugin manager
protected
getServices() : PluginManager
Return values
PluginManager —getTables()
Get mock database plugin manager
protected
getTables() : PluginManager
Return values
PluginManager —injectMockDatabaseDependencies()
Set up mock database services for a session handler.
protected
injectMockDatabaseDependencies(AbstractBase $handler) : void
Parameters
- $handler : AbstractBase
-
Session handler
Return values
void —injectMockDatabaseTables()
Set up mock databases for a session handler.
protected
injectMockDatabaseTables(AbstractBase $handler) : void
Parameters
- $handler : AbstractBase
-
Session handler
Return values
void —setUpDestroyExpectations()
Set up expectations for the standard abstract handler's destroy behavior.
protected
setUpDestroyExpectations(string $sessId) : void
Parameters
- $sessId : string
-
Session ID that we expect will be destroyed.