Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 403]

(no description)

File Size: 337 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: BehatExtension  - X-Ref

Behat extension for moodle

Provides multiple features directory loading (Gherkin\Loader\MoodleFeaturesSuiteLoader

__construct(ServiceProcessor $processor = null)   X-Ref
Initializes compiler pass.

param: null|ServiceProcessor $processor

load(ContainerBuilder $container, array $config)   X-Ref
Loads moodle specific configuration.

param: ContainerBuilder $container ContainerBuilder instance
param: array            $config    Extension configuration hash (from behat.yml)

loadMoodleListFormatter(ContainerBuilder $container)   X-Ref
Loads moodle List formatter.

param: ContainerBuilder $container

loadMoodleStepcountFormatter(ContainerBuilder $container)   X-Ref
Loads moodle Step count formatter.

param: ContainerBuilder $container

loadMoodleScreenshotFormatter(ContainerBuilder $container)   X-Ref
Loads moodle screenshot formatter.

param: ContainerBuilder $container

createOutputPrinterDefinition()   X-Ref
Creates output printer definition.

return: Definition

loadSkipPassedController(ContainerBuilder $container, $cachepath)   X-Ref
Loads skip passed controller.

param: ContainerBuilder $container
param: null|string      $cachepath

loadFilesystemSkipPassedScenariosListLocator(ContainerBuilder $container)   X-Ref
Loads filesystem passed scenarios list locator.

param: ContainerBuilder $container

loadDefinitionPrinters(ContainerBuilder $container)   X-Ref
Loads definition printers.

param: ContainerBuilder $container

loadController(ContainerBuilder $container)   X-Ref
Loads definition controller.

param: ContainerBuilder $container

loadChainedStepTester(ContainerBuilder $container)   X-Ref
Loads chained step tester.

param: ContainerBuilder $container

loadEventDispatchingStepTester(ContainerBuilder $container)   X-Ref
Loads event-dispatching step tester.

param: ContainerBuilder $container

configure(ArrayNodeDefinition $builder)   X-Ref
Setups configuration for current extension.

param: ArrayNodeDefinition $builder

getConfigKey()   X-Ref
Returns the extension config key.

return: string

initialize(ExtensionManager $extensionmanager)   X-Ref
Initializes other extensions.

This method is called immediately after all extensions are activated but
before any extension `configure()` method is called. This allows extensions
to hook into the configuration of other extensions providing such an
extension point.

param: ExtensionManager $extensionmanager

process(ContainerBuilder $container)   X-Ref
You can modify the container here before it is dumped to PHP code.

param: ContainerBuilder $container

alias_old_namespaces()   X-Ref
Alias old namespace of given. when and then for BC.