function ContainerBuilderTest::testConstructor
Tests constructor and resource tracking disabling.
This test runs in a separate process to ensure the aliased class does not affect any other tests.
Attributes
#[PreserveGlobalState(FALSE)]
#[RunInSeparateProcess]
File
-
core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ ContainerBuilderTest.php, line 106
Class
Namespace
Drupal\Tests\Core\DependencyInjectionCode
public function testConstructor() : void {
class_alias(TestInterface::class, 'Symfony\\Component\\Config\\Resource\\ResourceInterface');
$container = new ContainerBuilder();
$this->assertFalse($container->isTrackingResources());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.