You are here

public function ServiceContainerSymfonyTest::testInit in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Drupal/service_container_symfony/Tests/ServiceContainerSymfonyTest.php \Drupal\service_container_symfony\Tests\ServiceContainerSymfonyTest::testInit()

Tests some basic

File

modules/providers/service_container_symfony/lib/Drupal/service_container_symfony/Tests/ServiceContainerSymfonyTest.php, line 37
Contains \Drupal\service_container_symfony\Tests\ServiceContainerSymfonyTest.

Class

ServiceContainerSymfonyTest

Namespace

Drupal\service_container_symfony\Tests

Code

public function testInit() {
  $this
    ->assertTrue(\Drupal::hasService('service_container_symfony_test_yolo'));
  $this
    ->assertFalse(\Drupal::hasService('service_container_symfony_test_yolo1'));
}