public function mockApp()
{
if ($this->app === null) {
$this->app = new \luya\Boot();
$this->app->configFile = $this->getConfigFile();
$this->app->mockOnly = true;
$this->app->setYiiPath('vendor/yiisoft/yii2/Yii.php');
$this->app->applicationConsole();
}
}