public function ContainerTest::test_get_notFound_dependency_exception 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_get_notFound_dependency_exception()
Tests that Container::get() for non-existant dependencies works properly. @expectedException \Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException @covers ::get() @covers ::resolveServicesAndParameters()
File
- tests/
src/ DependencyInjection/ ContainerTest.php, line 244 - 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_get_notFound_dependency_exception() {
$this->container
->get('service_dependency_not_exists');
}