Class luya\testsuite\Bootstrap

Inheritanceluya\testsuite\Bootstrap
Implementsyii\base\BootstrapInterface
Available since version1.0.25

TestSuite Bootstrap

Allows the injection of console commands.

Public Methods

Hide inherited methods

Method Description Defined By
bootstrap() Bootstrap method to be called during application bootstrap stage. luya\testsuite\Bootstrap

Method Details

Hide inherited methods

bootstrap() public method

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,
        ];
    }
}