function ShareEnvironmentTest::testAttribute
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/TestTools/Attribute/ShareEnvironmentTest.php \Drupal\Tests\TestTools\Attribute\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.