function ShareEnvironment::__construct

Constructs a ShareEnvironment object.

Parameters

bool $enabled: (optional) Whether the test class shares its environment between its test methods.

File

core/tests/Drupal/TestTools/Attribute/ShareEnvironment.php, line 60

Class

ShareEnvironment
Shares the environment of a test class between its test methods.

Namespace

Drupal\TestTools\Attribute

Code

public function __construct(public readonly bool $enabled = TRUE) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.