function ShareEnvironmentTest::testAttribute
Tests that the attribute makes a class share its environment.
File
-
core/
tests/ Drupal/ Tests/ TestTools/ Attribute/ ShareEnvironmentTest.php, line 35
Class
- ShareEnvironmentTest
- Tests how the ShareEnvironment attribute is resolved.
Namespace
Drupal\Tests\TestTools\AttributeCode
public function testAttribute() : void {
$this->assertTrue(ShareEnvironment::isEnabledFor(SharedEnvironmentFixture::class));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.