public function ContainerTest::test_getDefinition in Service Container 7.2
Same name and namespace in other branches
- 7 tests/src/DependencyInjection/ContainerTest.php \Drupal\Tests\service_container\DependencyInjection\ContainerTest::test_getDefinition()
Tests that Container::getDefinition() works properly. @covers ::getDefinition()
File
- tests/
src/ DependencyInjection/ ContainerTest.php, line 54 - Contains \Drupal\Tests\service_container\DependencyInjection\ContainerTest
Class
- ContainerTest
- @coversDefaultClass \Drupal\service_container\DependencyInjection\Container @group dic
Namespace
Drupal\Tests\service_container\DependencyInjectionCode
public function test_getDefinition() {
$this
->assertEquals($this->containerDefinition['services']['service_container'], $this->container
->getDefinition('service_container'), 'Container definition matches for container service.');
$this
->assertEquals($this->containerDefinition['services']['service.provider'], $this->container
->getDefinition('service.provider'), 'Container definition matches for service.provider service.');
}