CraftConnector ​
- Type
- Class
- Namespace
- craft\test
- Inherits
- craft\test\CraftConnector »
Codeception\Lib\Connector\Yii2
- Since
- 3.2.0
Class CraftConnector
Protected Properties ​
Property | Description |
---|---|
emails | array |
emails
​
- Type
- array
- Default value
[]
Public Methods ​
Method | Description |
---|---|
findAndLoginUser() | We override to prevent a bug with the matching of user agent and session. |
getEmails() | |
resetApplication() | |
startApp() | Closes the db connection after initializing Craft. The Yii2 module will try to initialize transaction listeners before each test. If we don't close the connection first, those listeners will never get picked up. |
findAndLoginUser()
​
We override to prevent a bug with the matching of user agent and session.
Arguments ​
$user
(mixed
)$disableRequiredUserAgent
(boolean)
Throws ​
\Codeception\Exception\ConfigurationException
getEmails()
​
resetApplication()
​
Arguments ​
$closeSession
startApp()
​
Closes the db connection after initializing Craft. The Yii2 module will try to initialize transaction listeners before each test. If we don't close the connection first, those listeners will never get picked up.
We'll open the connection after all of the transaction listeners are registered.
Arguments ​
$logger
Protected Methods ​
Method | Description |
---|---|
mockMailer() | |
resetRequest() |
mockMailer()
​
Arguments ​
$config
resetRequest()
​
Arguments ​
$app
(yii\web\Application)