public function ServiceContainerSymfonyTest::testMultiple in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Drupal/service_container_symfony/Tests/ServiceContainerSymfonyTest.php \Drupal\service_container_symfony\Tests\ServiceContainerSymfonyTest::testMultiple()
Tests with multiple modules enabled.
File
- modules/
providers/ service_container_symfony/ lib/ Drupal/ service_container_symfony/ Tests/ ServiceContainerSymfonyTest.php, line 45 - Contains \Drupal\service_container_symfony\Tests\ServiceContainerSymfonyTest.
Class
Namespace
Drupal\service_container_symfony\TestsCode
public function testMultiple() {
$this
->assertTrue(\Drupal::hasService('service_container_symfony_test_yolo'));
$this
->assertFalse(\Drupal::hasService('service_container_symfony_test_yolo1'));
$this
->assertTrue(\Drupal::hasService('service_container_symfony_subtest_yolo'));
$this
->assertFalse(\Drupal::hasService('service_container_symfony_subtest_yolo1'));
}