mockApplication() protected method
Mocks up the application instance.
protected yii\web\Application|yii\console\Application mockApplication ( $config = null ) | ||
---|---|---|
$config | array |
The configuration that should be used to generate the application instance. If null, $appConfig will be used. |
return | yii\web\Application|yii\console\Application |
The application instance |
throws | yii\base\InvalidConfigException |
if the application configuration is invalid |
Please login to continue.