ServiceContainerIntegrationTest.php in Service Container 7
File
lib/Drupal/service_container/Tests/ServiceContainerIntegrationTest.php
View source
<?php
namespace Drupal\service_container\Tests;
class ServiceContainerIntegrationTest extends ServiceContainerIntegrationTestBase {
public static function getInfo() {
return array(
'name' => 'ServiceContainer',
'description' => 'Tests the \\ServiceContainer class',
'group' => 'service_container',
);
}
public function testInit() {
$this
->assertTrue(\Drupal::hasService('service_container'));
$this
->assertTrue(\Drupal::hasService('module_handler'));
$this
->assertTrue(\Drupal::hasService('module_installer'));
}
}