class ModuleInitialisationController implements Controller (View source)

Initialises module test environment.

Replaces:

Traits

Properties

protected Container $container

Methods

protected
Module
getModule(string $name, bool $error = true)

Find target module being tested

public
__construct(ContainerInterface $container, SuiteRepository $repository, SuiteBootstrapper $bootstrapper)

Initializes controller.

public
configure(Command $command)

{@inheritdoc}

public
execute(InputInterface $input, OutputInterface $output)

{@inheritdoc}

protected
int
baseExecute(OutputInterface $output)

No description

protected
initFeaturesPath(OutputInterface $output, Module $module)

No description

protected
initClassPath(OutputInterface $output, Module $module, string $namespaceRoot)

Init class_path

protected
string
getFixtureClass(string $namespaceRoot)

Get fixture class name

protected
string
getFixtureNamespace(string $namespaceRoot)

No description

protected
initConfig(OutputInterface $output, Module $module, string $namespaceRoot)

Init config file behat.yml

Details

protected Module getModule(string $name, bool $error = true)

Find target module being tested

Parameters

string $name
bool $error

Throw error if not found

Return Value

Module

__construct(ContainerInterface $container, SuiteRepository $repository, SuiteBootstrapper $bootstrapper)

Initializes controller.

Parameters

ContainerInterface $container
SuiteRepository $repository
SuiteBootstrapper $bootstrapper

configure(Command $command)

{@inheritdoc}

Parameters

Command $command

execute(InputInterface $input, OutputInterface $output)

{@inheritdoc}

Parameters

InputInterface $input
OutputInterface $output

protected int baseExecute(OutputInterface $output)

No description

Parameters

OutputInterface $output

Return Value

int

protected initFeaturesPath(OutputInterface $output, Module $module)

No description

Parameters

OutputInterface $output
Module $module

protected initClassPath(OutputInterface $output, Module $module, string $namespaceRoot)

Init class_path

Parameters

OutputInterface $output
Module $module
string $namespaceRoot

Exceptions

Exception

protected string getFixtureClass(string $namespaceRoot)

Get fixture class name

Parameters

string $namespaceRoot

Return Value

string

protected string getFixtureNamespace(string $namespaceRoot)

No description

Parameters

string $namespaceRoot

Return Value

string

protected initConfig(OutputInterface $output, Module $module, string $namespaceRoot)

Init config file behat.yml

Parameters

OutputInterface $output
Module $module
string $namespaceRoot