You are here

public function ServiceContainerSymfonyTest::testMultiple in Service Container 7.2

Same name and namespace in other branches
  1. 7 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

ServiceContainerSymfonyTest

Namespace

Drupal\service_container_symfony\Tests

Code

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'));
}