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.
@runInSeparateProcess @preserveGlobalState disabled
File
-
core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ ContainerBuilderTest.php, line 106
Class
- ContainerBuilderTest
- @coversDefaultClass \Drupal\Core\DependencyInjection\ContainerBuilder[[api-linebreak]] @group DependencyInjection
Namespace
Drupal\Tests\Core\DependencyInjectionCode
public function testConstructor() {
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.