Class luya\testsuite\Bootstrap
Inheritance | luya\testsuite\Bootstrap |
---|---|
Implements | yii\base\BootstrapInterface |
Available since version | 1.0.25 |
Source Code | https://github.com/luyadev/luya-testsuite/blob/master/src/Bootstrap.php |
TestSuite Bootstrap
Allows the injection of console commands.
Public Methods
Method | Description | Defined By |
---|---|---|
bootstrap() | Bootstrap method to be called during application bootstrap stage. | luya\testsuite\Bootstrap |
Method Details
Bootstrap method to be called during application bootstrap stage.
public void bootstrap ( $app ) | ||
$app | yii\base\Application |
The application currently running |
public function bootstrap($app)
{
if ($app instanceof Application && $app->enableCoreCommands) {
$app->controllerMap['generatefixture'] = [
'class' => GenerateFixtureController::class,
];
}
}