You are here

public function ServiceContainerIntegrationTest::testInit in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/service_container/Tests/ServiceContainerIntegrationTest.php \Drupal\service_container\Tests\ServiceContainerIntegrationTest::testInit()

Tests some basic

File

lib/Drupal/service_container/Tests/ServiceContainerIntegrationTest.php, line 26
Contains \Drupal\service_container\Tests\ServiceContainerIntegrationTest.

Class

ServiceContainerIntegrationTest

Namespace

Drupal\service_container\Tests

Code

public function testInit() {
  $this
    ->assertTrue(\Drupal::hasService('service_container'));
  $this
    ->assertTrue(\Drupal::hasService('module_handler'));
  $this
    ->assertTrue(\Drupal::hasService('module_installer'));
}