Drupal Test Helpers module API documentation - release 1.3.1

ConfigFactoryStub extends ConfigFactory
in package

A stub of the Drupal's default ConfigFactory class.

@package TestHelpers\DrupalServiceStubs

Table of Contents

Methods

__construct()  : mixed
{@inheritdoc}
stubSetConfig()  : void
Sets a config value.
doLoadMultiple()  : mixed
{@inheritdoc}

Methods

__construct()

{@inheritdoc}

public __construct(StorageInterface $storage, EventDispatcherInterface $event_dispatcher, TypedConfigManagerInterface $typed_config) : mixed
Parameters
$storage : StorageInterface
$event_dispatcher : EventDispatcherInterface
$typed_config : TypedConfigManagerInterface

stubSetConfig()

Sets a config value.

public stubSetConfig(string $name, array<string|int, mixed>|string $dataOrYamlFile) : void
Parameters
$name : string

The name of the config.

$dataOrYamlFile : array<string|int, mixed>|string

An array with a data to store, or a relative path to a yaml file.

doLoadMultiple()

{@inheritdoc}

protected doLoadMultiple(array<string|int, mixed> $names[, mixed $immutable = TRUE ]) : mixed
Parameters
$names : array<string|int, mixed>
$immutable : mixed = TRUE

        
On this page

Search results